maxidl commited on
Commit
4d564f8
·
1 Parent(s): abced76
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -30,7 +30,8 @@ def generate(paper_text):
30
  ]
31
  model_inputs = tokenizer.apply_chat_template(
32
  messages,
33
- add_generation_prompt=True
 
34
  ).to(model.device)
35
 
36
  generated_ids = model.generate(
 
30
  ]
31
  model_inputs = tokenizer.apply_chat_template(
32
  messages,
33
+ add_generation_prompt=True,
34
+ return_tensors='pt'
35
  ).to(model.device)
36
 
37
  generated_ids = model.generate(