Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -80,9 +80,10 @@ def merlin_chat(message, history):
|
|
80 |
for attempt in range(3):
|
81 |
result = model(
|
82 |
prompt,
|
83 |
-
return_full_text=False
|
84 |
-
|
85 |
-
|
|
|
86 |
)
|
87 |
response = result[0]['generated_text']
|
88 |
start = 0
|
|
|
80 |
for attempt in range(3):
|
81 |
result = model(
|
82 |
prompt,
|
83 |
+
return_full_text=False
|
84 |
+
# truncation=True,
|
85 |
+
# max_length=250,
|
86 |
+
# handle_long_generation="hole"
|
87 |
)
|
88 |
response = result[0]['generated_text']
|
89 |
start = 0
|