Redmind commited on
Commit
bc62451
·
verified ·
1 Parent(s): bd21414

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -576,7 +576,7 @@ def handle_query(user_question, chatbot, audio=None):
576
  while not future.done():
577
  if stop_event.is_set():
578
  future.cancel()
579
- return [("Processing was cancelled.", "bot")]
580
  time.sleep(1) # Wait for 1 second before checking again
581
 
582
  if future.cancelled():
 
576
  while not future.done():
577
  if stop_event.is_set():
578
  future.cancel()
579
+ return [(user_question, "Sorry, we encountered an error while processing your requestPlease try after some time.")]
580
  time.sleep(1) # Wait for 1 second before checking again
581
 
582
  if future.cancelled():