Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,9 @@ async def main(message: cl.Message):
|
|
50 |
await cl.Message(f"Error processing the document: {e}").send()
|
51 |
else:
|
52 |
# Handle the question as usual
|
|
|
53 |
response = await asyncio.to_thread(retrieval_augmented_qa_chain.invoke, {"question": message.content})
|
54 |
-
await cl.Message(content=response).send()
|
55 |
|
56 |
res = await ask_action()
|
57 |
await handle_response(res)
|
|
|
50 |
await cl.Message(f"Error processing the document: {e}").send()
|
51 |
else:
|
52 |
# Handle the question as usual
|
53 |
+
await cl.Message(content="Thinking about it, give me a second...", disable_human_feedback=True).send()
|
54 |
response = await asyncio.to_thread(retrieval_augmented_qa_chain.invoke, {"question": message.content})
|
55 |
+
await cl.Message(content=response.content).send()
|
56 |
|
57 |
res = await ask_action()
|
58 |
await handle_response(res)
|