IEIT-Yuan commited on
Commit
5dc5c4e
Β·
verified Β·
1 Parent(s): 28f4c11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -60,6 +60,7 @@ def predict(message, history):
60
  # yield partial_message
61
  inputs = tokenizer(message, return_tensors="pt")["input_ids"].to(device)
62
  outputs = model.generate(inputs, do_sample=False, max_length=100)
 
63
  return(tokenizer.decode(outputs[0]))
64
 
65
 
 
60
  # yield partial_message
61
  inputs = tokenizer(message, return_tensors="pt")["input_ids"].to(device)
62
  outputs = model.generate(inputs, do_sample=False, max_length=100)
63
+ print(tokenizer.decode(outputs[0]))
64
  return(tokenizer.decode(outputs[0]))
65
 
66