Hải Huỳnh commited on
Commit
42a99f1
·
unverified ·
1 Parent(s): b1ee052

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = await llm_chain.ainvoke({
59
  "input": message.content
60
  },
61
- callbacks = [cl.AsyncLangchainCallbackHandler()]
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()