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

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +3 -1
chain_app.py CHANGED
@@ -2205,6 +2205,8 @@ async def main(message: cl.Message):
2205
  ).send()
2206
 
2207
  elif chat_profile == 'Qwen2-57B':
 
 
2208
  client = Client("Qwen/Qwen2-57b-a14b-instruct-demo", hf_token=hf_token)
2209
  result = client.predict(
2210
  query=message.content,
@@ -2213,7 +2215,7 @@ async def main(message: cl.Message):
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]
 
2205
  ).send()
2206
 
2207
  elif chat_profile == 'Qwen2-57B':
2208
+ msg = cl.Message(content="")
2209
+ await msg.send()
2210
  client = Client("Qwen/Qwen2-57b-a14b-instruct-demo", hf_token=hf_token)
2211
  result = client.predict(
2212
  query=message.content,
 
2215
  )
2216
 
2217
  for i in list(result[1][0][1]):
2218
+ await msg.stream_token(i)
2219
 
2220
  # await cl.Message(
2221
  # content=result[1][0][1]