Spaces:
Running
Running
Update main.py
Browse files
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)
|