Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def chat(model_name, user_input, chat_history):
|
|
| 22 |
|
| 23 |
# Generate a response
|
| 24 |
try:
|
| 25 |
-
response = generator(user_input, max_length=
|
| 26 |
chat_history.append((user_input, response))
|
| 27 |
return "", chat_history
|
| 28 |
except Exception as e:
|
|
|
|
| 22 |
|
| 23 |
# Generate a response
|
| 24 |
try:
|
| 25 |
+
response = generator(user_input, max_length=5000000000, num_return_sequences=1, do_sample=True, top_p=0.95, top_k=60)[0]['generated_text']
|
| 26 |
chat_history.append((user_input, response))
|
| 27 |
return "", chat_history
|
| 28 |
except Exception as e:
|