Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ def predict(input, history=[]):
|
|
23 |
|
24 |
# generate a response
|
25 |
history = model.generate(
|
26 |
-
bot_input_ids, max_length=
|
27 |
).tolist()
|
28 |
|
29 |
# convert the tokens to text, and then split the responses into lines
|
|
|
23 |
|
24 |
# generate a response
|
25 |
history = model.generate(
|
26 |
+
bot_input_ids, max_length=200, pad_token_id=tokenizer.eos_token_id
|
27 |
).tolist()
|
28 |
|
29 |
# convert the tokens to text, and then split the responses into lines
|