cmagganas commited on
Commit
7a9f5c9
1 Parent(s): 1a6c7db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,9 +10,9 @@ def start():
10
  cl.Message("Welcome to the information extraction chat!").send()
11
 
12
  @cl.on_message
13
- def main(message: cl.Message):
14
  """
15
  This is called when a message is received!
16
  """
17
- res = extract_information().invoke({"input": message})["text"]
18
  await cl.Message(content=res).send()
 
10
  cl.Message("Welcome to the information extraction chat!").send()
11
 
12
  @cl.on_message
13
+ async def main(message: cl.Message):
14
  """
15
  This is called when a message is received!
16
  """
17
+ await res = extract_information().invoke({"input": message})["text"]
18
  await cl.Message(content=res).send()