Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -102,7 +102,7 @@ def respond(
|
|
| 102 |
for chunk in stream:
|
| 103 |
delta = chunk['choices'][0]['delta']
|
| 104 |
if 'content' in delta:
|
| 105 |
-
tokens = delta['content']
|
| 106 |
for token in tokens:
|
| 107 |
outputs+=token
|
| 108 |
yield outputs
|
|
|
|
| 102 |
for chunk in stream:
|
| 103 |
delta = chunk['choices'][0]['delta']
|
| 104 |
if 'content' in delta:
|
| 105 |
+
tokens = delta['content']#.split()
|
| 106 |
for token in tokens:
|
| 107 |
outputs+=token
|
| 108 |
yield outputs
|