Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -707,8 +707,8 @@ async def construction_NCS(romeListArray):
|
|
707 |
#completion_NCS = chain.invoke({"question":question_p,"context":context_p})
|
708 |
|
709 |
msg = cl.Message(author="Datapcc : πππ",content="")
|
710 |
-
for chunk in chain.
|
711 |
-
msg.stream_token(chunk)
|
712 |
|
713 |
#for s in chain.stream({"question":question_p,"context":context_p}):
|
714 |
# print(s, end="", flush=True)
|
|
|
707 |
#completion_NCS = chain.invoke({"question":question_p,"context":context_p})
|
708 |
|
709 |
msg = cl.Message(author="Datapcc : πππ",content="")
|
710 |
+
async for chunk in chain.astream({"question":question_p,"context":context_p}):
|
711 |
+
await msg.stream_token(chunk)
|
712 |
|
713 |
#for s in chain.stream({"question":question_p,"context":context_p}):
|
714 |
# print(s, end="", flush=True)
|