Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,11 +24,10 @@ def funcion(prompt, historial):
|
|
| 24 |
try:
|
| 25 |
stream = client.text_generation(chat, **kwargs, stream=True, details=True, return_full_text=False)
|
| 26 |
for response in stream:
|
| 27 |
-
output += response.token.text
|
| 28 |
yield output
|
| 29 |
except:
|
| 30 |
pass
|
| 31 |
-
output = output.replace('<|eot_id|>', '')
|
| 32 |
return output
|
| 33 |
|
| 34 |
|
|
|
|
| 24 |
try:
|
| 25 |
stream = client.text_generation(chat, **kwargs, stream=True, details=True, return_full_text=False)
|
| 26 |
for response in stream:
|
| 27 |
+
output += response.token.text.replace('<|eot_id|>', '')
|
| 28 |
yield output
|
| 29 |
except:
|
| 30 |
pass
|
|
|
|
| 31 |
return output
|
| 32 |
|
| 33 |
|