Redmind commited on
Commit
0ddd34e
·
verified ·
1 Parent(s): 67e57d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -628,7 +628,7 @@ def answer_question_thread(user_question, chatbot, audio=None):
628
  iterations += 1
629
 
630
  if iterations == max_iterations:
631
- return "The agent could not generate a valid response within the iteration limit."
632
 
633
  if os.getenv("IMAGE_PATH") in response_text:
634
  # Open the image file
 
628
  iterations += 1
629
 
630
  if iterations == max_iterations:
631
+ return user_question , "Sorry, I couldn't complete your request" #"The agent could not generate a valid response within the iteration limit."
632
 
633
  if os.getenv("IMAGE_PATH") in response_text:
634
  # Open the image file