Spaces:
Build error
Build error
Commit
·
4eed7dc
1
Parent(s):
f3e34b6
Update app.py
Browse files
app.py
CHANGED
@@ -242,7 +242,7 @@ if st.button("Run"):
|
|
242 |
encoded_prompt = tokenizer(start, add_special_tokens=False, return_tensors="pt").input_ids
|
243 |
encoded_prompt = encoded_prompt.to(trainer.model.device)
|
244 |
# prediction
|
245 |
-
output_sequences =
|
246 |
input_ids=encoded_prompt,
|
247 |
max_length=max_length,
|
248 |
min_length=min_length,
|
|
|
242 |
encoded_prompt = tokenizer(start, add_special_tokens=False, return_tensors="pt").input_ids
|
243 |
encoded_prompt = encoded_prompt.to(trainer.model.device)
|
244 |
# prediction
|
245 |
+
output_sequences = model.generate(
|
246 |
input_ids=encoded_prompt,
|
247 |
max_length=max_length,
|
248 |
min_length=min_length,
|