danicafisher commited on
Commit
9881234
·
verified ·
1 Parent(s): 6c213fa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -99,8 +99,10 @@ async def handle_response(res):
99
  await asyncio.to_thread(qdrant_store.add_documents, splits)
100
  await cl.Message(content="added to vs").send()
101
 
102
- msg.content = f"Processing `{file.name}` done. You can now ask questions!"
103
- await msg.update()
 
 
104
 
105
  if res and res.get("value") == "url":
106
  await cl.Message(content="Submit a url link in the message box below.").send()
 
99
  await asyncio.to_thread(qdrant_store.add_documents, splits)
100
  await cl.Message(content="added to vs").send()
101
 
102
+ await cl.Message(content=f"Processing `{file.name}` done.").send()
103
+
104
+ res = await ask_action()
105
+ await handle_response(res)
106
 
107
  if res and res.get("value") == "url":
108
  await cl.Message(content="Submit a url link in the message box below.").send()