Artin2009 commited on
Commit
6830f1a
1 Parent(s): 277fc2f

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +7 -3
chain_app.py CHANGED
@@ -2211,9 +2211,13 @@ async def main(message: cl.Message):
2211
  system=f"You are neural nexus official chatbot, you are made by Artin Daneshvar and Sadra Noadoust and you are here to help people",
2212
  api_name="/model_chat"
2213
  )
2214
- await cl.Message(
2215
- content=result[1][0][1]
2216
- ).send()
 
 
 
 
2217
 
2218
  elif chat_profile == 'Qwen2-7B':
2219
  client = Client("Qwen/Qwen2-7b-instruct-demo", hf_token=hf_token)
 
2211
  system=f"You are neural nexus official chatbot, you are made by Artin Daneshvar and Sadra Noadoust and you are here to help people",
2212
  api_name="/model_chat"
2213
  )
2214
+
2215
+ for i in list(result[1][0][1]):
2216
+ msg.stream_token(i)
2217
+
2218
+ # await cl.Message(
2219
+ # content=result[1][0][1]
2220
+ # ).send()
2221
 
2222
  elif chat_profile == 'Qwen2-7B':
2223
  client = Client("Qwen/Qwen2-7b-instruct-demo", hf_token=hf_token)