Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +1 -1
chain_app.py
CHANGED
|
@@ -2073,7 +2073,7 @@ async def main(message: cl.Message):
|
|
| 2073 |
stream=True
|
| 2074 |
)
|
| 2075 |
|
| 2076 |
-
|
| 2077 |
if token := part.choices[0].delta.content or "":
|
| 2078 |
await msg.stream_token(token)
|
| 2079 |
|
|
|
|
| 2073 |
stream=True
|
| 2074 |
)
|
| 2075 |
|
| 2076 |
+
for part in stream:
|
| 2077 |
if token := part.choices[0].delta.content or "":
|
| 2078 |
await msg.stream_token(token)
|
| 2079 |
|