Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|