Chris Alexiuk
commited on
Commit
•
a82ed0c
1
Parent(s):
6386ac4
Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,7 @@ async def init():
|
|
75 |
|
76 |
@cl.on_message
|
77 |
async def main(message):
|
|
|
78 |
cb = cl.AsyncLangchainCallbackHandler(
|
79 |
stream_final_answer=True, answer_prefix_tokens=["FINAL", "ANSWER"]
|
80 |
)
|
|
|
75 |
|
76 |
@cl.on_message
|
77 |
async def main(message):
|
78 |
+
chain = cl.user_session.get("chain")
|
79 |
cb = cl.AsyncLangchainCallbackHandler(
|
80 |
stream_final_answer=True, answer_prefix_tokens=["FINAL", "ANSWER"]
|
81 |
)
|