Redmind commited on
Commit
d65eba6
·
verified ·
1 Parent(s): 6657a94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -568,10 +568,11 @@ def handle_query(user_question, chatbot, audio=None):
568
  print(user_question)
569
  if future and not future.done():
570
  return "A query is already being processed. Please stop it before starting a new one."
571
-
572
  # Start the processing in a new thread
573
- future = executor.submit(answer_question, [user_question,chatbot])
574
-
 
575
  # Check if the process is done or cancelled
576
  if future.done():
577
  if future.cancelled():
 
568
  print(user_question)
569
  if future and not future.done():
570
  return "A query is already being processed. Please stop it before starting a new one."
571
+ print(user_question)
572
  # Start the processing in a new thread
573
+ future = executor.submit(answer_question, user_question, chatbot)
574
+ print(future)
575
+
576
  # Check if the process is done or cancelled
577
  if future.done():
578
  if future.cancelled():