Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -753,6 +753,9 @@ def answer_question_thread(user_question, chatbot,audio=None):
|
|
753 |
|
754 |
return user_question, response_text
|
755 |
else:
|
|
|
|
|
|
|
756 |
return user_question, response_text
|
757 |
# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
|
758 |
# return response_text
|
|
|
753 |
|
754 |
return user_question, response_text
|
755 |
else:
|
756 |
+
if ("max iterations" in response_text):
|
757 |
+
print(agent_executor.agent.return_values)
|
758 |
+
print(agent_executor.agent.return_stopped_response)
|
759 |
return user_question, response_text
|
760 |
# response_text = response_text.replace('\n', ' ').replace(' ', ' ').strip()
|
761 |
# return response_text
|