cmagganas commited on
Commit
4e948c7
·
1 Parent(s): c7851ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -14,5 +14,11 @@ async def main(message: cl.Message):
14
  """
15
  This is called when a message is received!
16
  """
17
- res = await extract_information().ainvoke({"input": message})["text"]
 
 
 
 
 
 
18
  await cl.Message(content=res).send()
 
14
  """
15
  This is called when a message is received!
16
  """
17
+ # res = await extract_information().ainvoke({"input": message})["text"]
18
+ res = await extract_information().ainvoke({"input": message})
19
+ res = res["text"]
20
+
21
+ # res = await cl.make_async(extract_information().invoke)(
22
+ # input=message.content, callbacks=[cl.LangchainCallbackHandler()]
23
+ # )
24
  await cl.Message(content=res).send()