camparchimedes
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -116,8 +116,7 @@ async def handle_message(message: cl.Message):
|
|
116 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
117 |
response_key = "output" if "output" in response else "text"
|
118 |
await cl.Message(response.get(response_key, "")).send()
|
|
|
119 |
|
120 |
|
121 |
|
122 |
-
if __name__ == '__main__':
|
123 |
-
cl.launch()
|
|
|
116 |
callbacks=[cl.AsyncLangchainCallbackHandler()])
|
117 |
response_key = "output" if "output" in response else "text"
|
118 |
await cl.Message(response.get(response_key, "")).send()
|
119 |
+
return message.content
|
120 |
|
121 |
|
122 |
|
|
|
|