Redmind commited on
Commit
31e7d3e
·
verified ·
1 Parent(s): cf7134b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
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