Hải Huỳnh commited on
Commit
19b554e
1 Parent(s): fe81246

Update app.py

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