Spaces:
Runtime error
Runtime error
Hải Huỳnh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -55,10 +55,10 @@ async def on_message(message: cl.Message):
|
|
55 |
|
56 |
llm_chain = cl.user_session.get("runnable")
|
57 |
|
58 |
-
response =
|
59 |
"input": message.content
|
60 |
},
|
61 |
-
callbacks = [cl.
|
62 |
)
|
63 |
|
64 |
await cl.Message(response["output"].replace("`", "")).send()
|
|
|
55 |
|
56 |
llm_chain = cl.user_session.get("runnable")
|
57 |
|
58 |
+
response = llm_chain.invoke({
|
59 |
"input": message.content
|
60 |
},
|
61 |
+
callbacks = [cl.LangchainCallbackHandler()]
|
62 |
)
|
63 |
|
64 |
await cl.Message(response["output"].replace("`", "")).send()
|