CSAle commited on
Commit
3a844d7
1 Parent(s): 2cc345e

Correcting Demo

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def make_inference(product_name, product_description):
25
  with torch.cuda.amp.autocast():
26
  output_tokens = model.generate(**batch, max_new_tokens=50)
27
 
28
- print(tokenizer.decode(output_tokens[0], skip_special_tokens=True))
29
 
30
 
31
  if __name__ == "__main__":
 
25
  with torch.cuda.amp.autocast():
26
  output_tokens = model.generate(**batch, max_new_tokens=50)
27
 
28
+ return tokenizer.decode(output_tokens[0], skip_special_tokens=True)
29
 
30
 
31
  if __name__ == "__main__":