Spaces:
Running
on
Zero
Running
on
Zero
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(
|