Artin2009 commited on
Commit
d797f64
·
verified ·
1 Parent(s): f7cb4e5

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +3 -1
chain_app.py CHANGED
@@ -700,7 +700,9 @@ async def main(message: cl.Message):
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):
 
700
 
701
  for event in stream:
702
  if event.event_type == "text-generation":
703
+ await cl.Message(content=event.text, end='').send()
704
+
705
+
706
 
707
  @cl.on_settings_update
708
  async def setup_agent(settings):