CSAle commited on
Commit
42ebcde
1 Parent(s): 5804ba6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ async def start_chat():
33
  cl.user_session.set("settings", settings)
34
 
35
  @cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
36
- async def main(message: str):
37
 
38
  settings = cl.user_session.get("settings")
39
 
@@ -51,7 +51,7 @@ async def main(message: str):
51
  formatted=user_template.format(input=message),
52
  )
53
  ],
54
- inputs = {"input" : message},
55
  settings=settings
56
  )
57
 
 
33
  cl.user_session.set("settings", settings)
34
 
35
  @cl.on_message # marks a function that should be run each time the chatbot receives a message from a user
36
+ async def main(message):
37
 
38
  settings = cl.user_session.get("settings")
39
 
 
51
  formatted=user_template.format(input=message),
52
  )
53
  ],
54
+ inputs = {"input" : message.content},
55
  settings=settings
56
  )
57