Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -755,7 +755,7 @@ def answer_question_thread(user_question, chatbot,audio=None):
|
|
| 755 |
|
| 756 |
return user_question, response_text
|
| 757 |
else:
|
| 758 |
-
|
| 759 |
response_text = "Sorry. I could not respond your query at the moment. This query is taking a lot of time. Please rephrase your query"
|
| 760 |
|
| 761 |
return user_question, response_text
|
|
|
|
| 755 |
|
| 756 |
return user_question, response_text
|
| 757 |
else:
|
| 758 |
+
if ("max iterations" in response_text):
|
| 759 |
response_text = "Sorry. I could not respond your query at the moment. This query is taking a lot of time. Please rephrase your query"
|
| 760 |
|
| 761 |
return user_question, response_text
|