Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -518,6 +518,8 @@ def answer_question(user_question, chatbot, audio=None):
|
|
518 |
iterations += 1
|
519 |
print(os.getenv("IMAGE_PATH"))
|
520 |
print(response_text)
|
|
|
|
|
521 |
if iterations == max_iterations:
|
522 |
return "The agent could not generate a valid response within the iteration limit."
|
523 |
|
|
|
518 |
iterations += 1
|
519 |
print(os.getenv("IMAGE_PATH"))
|
520 |
print(response_text)
|
521 |
+
print("validating. ")
|
522 |
+
print(os.getenv("IMAGE_PATH") in response_text)
|
523 |
if iterations == max_iterations:
|
524 |
return "The agent could not generate a valid response within the iteration limit."
|
525 |
|