Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -182,7 +182,7 @@ def generate(
|
|
| 182 |
else:
|
| 183 |
output = ""
|
| 184 |
# model.to(device)
|
| 185 |
-
input_ids = tokenizer(
|
| 186 |
# generated_ids = model.generate(**input_ids, **generate_kwargs)
|
| 187 |
generated_ids = model.generate(**input_ids)
|
| 188 |
|
|
|
|
| 182 |
else:
|
| 183 |
output = ""
|
| 184 |
# model.to(device)
|
| 185 |
+
input_ids = tokenizer(prompt, return_tensors="pt").to(device)
|
| 186 |
# generated_ids = model.generate(**input_ids, **generate_kwargs)
|
| 187 |
generated_ids = model.generate(**input_ids)
|
| 188 |
|