Artin2009 commited on
Commit
fbd6847
1 Parent(s): ca1ec44

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +2 -3
chain_app.py CHANGED
@@ -697,9 +697,8 @@ async def main(message: cl.Message):
697
  connectors=[],
698
  )
699
 
700
- for event in stream:
701
- if event.event_type == "text-generation":
702
- await cl.Message(content=event.text).send()
703
  @cl.on_settings_update
704
  async def setup_agent(settings):
705
  print("on_settings_update", settings)
 
697
  connectors=[],
698
  )
699
 
700
+
701
+ await cl.Message(content=event.text).send()
 
702
  @cl.on_settings_update
703
  async def setup_agent(settings):
704
  print("on_settings_update", settings)