datacipen commited on
Commit
ac27209
β€’
1 Parent(s): 50a8089

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -721,7 +721,7 @@ async def construction_NCS(romeListArray):
721
 
722
  msg = cl.Message(author="Datapcc : 🌐🌐🌐",content="")
723
  async for chunk in chain.astream({"question":question_p,"context":context_p},
724
- config=RunnableConfig(callbacks=[cl.AsyncLangchainCallbackHandler(stream_final_answer=True)]):
725
  await msg.stream_token(chunk)
726
 
727
  cl.user_session.set("NCS" + romeListArray[0], msg.content)
 
721
 
722
  msg = cl.Message(author="Datapcc : 🌐🌐🌐",content="")
723
  async for chunk in chain.astream({"question":question_p,"context":context_p},
724
+ config=RunnableConfig(callbacks=[cl.AsyncLangchainCallbackHandler(stream_final_answer=True)])):
725
  await msg.stream_token(chunk)
726
 
727
  cl.user_session.set("NCS" + romeListArray[0], msg.content)