Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -174,9 +174,9 @@ async def handle_message(message: cl.Message):
|
|
174 |
}
|
175 |
}
|
176 |
|
177 |
-
response = await post_tool.
|
178 |
-
post_data,
|
179 |
-
config={"callbacks":
|
180 |
)
|
181 |
|
182 |
# --degug!
|
|
|
174 |
}
|
175 |
}
|
176 |
|
177 |
+
response = await post_tool.ainvoke(
|
178 |
+
json.dumps(post_data),
|
179 |
+
[cl.AsyncLangchainCallbackHandler()]} # config={"callbacks":
|
180 |
)
|
181 |
|
182 |
# --degug!
|