Spaces:
Runtime error
Runtime error
Update chain_app.py
Browse files- chain_app.py +3 -1
chain_app.py
CHANGED
|
@@ -699,7 +699,9 @@ async def main(message: cl.Message):
|
|
| 699 |
)
|
| 700 |
|
| 701 |
for event in stream:
|
| 702 |
-
|
|
|
|
|
|
|
| 703 |
@cl.on_settings_update
|
| 704 |
async def setup_agent(settings):
|
| 705 |
print("on_settings_update", settings)
|
|
|
|
| 699 |
)
|
| 700 |
|
| 701 |
for event in stream:
|
| 702 |
+
if event.event_type == "text-generation":
|
| 703 |
+
await cl.Message(content=event.text).send()
|
| 704 |
+
|
| 705 |
@cl.on_settings_update
|
| 706 |
async def setup_agent(settings):
|
| 707 |
print("on_settings_update", settings)
|