Artin2009 commited on
Commit
5cfbf32
1 Parent(s): 19a2bc3

Update chain_app.py

Browse files
Files changed (1) hide show
  1. chain_app.py +2 -2
chain_app.py CHANGED
@@ -2541,9 +2541,9 @@ async def main(message: cl.Message):
2541
  top_p=0.95,
2542
  api_name="/chat"
2543
  )
2544
- for i in list(result[1][0][1]):
2545
- await msg.stream_token(i)
2546
 
 
 
2547
  elif chat_profile == 'mistral-7B-v2':
2548
  client = InferenceClient(
2549
  "mistralai/Mistral-7B-Instruct-v0.2",
 
2541
  top_p=0.95,
2542
  api_name="/chat"
2543
  )
 
 
2544
 
2545
+ for i in result:
2546
+ await msg.stream_token(i)
2547
  elif chat_profile == 'mistral-7B-v2':
2548
  client = InferenceClient(
2549
  "mistralai/Mistral-7B-Instruct-v0.2",