Spaces:
Build error
Build error
Hải Huỳnh
commited on
Commit
•
19b554e
1
Parent(s):
fe81246
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ async def on_message(message: cl.Message):
|
|
50 |
|
51 |
llm_chain = cl.user_session.get("runnable")
|
52 |
|
53 |
-
response =
|
54 |
-
{"input": message.content}, callbacks = [cl.
|
55 |
)
|
56 |
|
57 |
await cl.Message(response["output"].replace("`", "")).send()
|
|
|
50 |
|
51 |
llm_chain = cl.user_session.get("runnable")
|
52 |
|
53 |
+
response = llm_chain.invoke(
|
54 |
+
{"input": message.content}, callbacks = [cl.LangchainCallbackHandler()]
|
55 |
)
|
56 |
|
57 |
await cl.Message(response["output"].replace("`", "")).send()
|