Redmind commited on
Commit
9a9c0b0
·
verified ·
1 Parent(s): 23d9010

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -713,7 +713,8 @@ def answer_question_thread(user_question, chatbot,audio=None):
713
  if "invalid" not in response_text.lower():
714
  break
715
  iterations += 1
716
-
 
717
  if iterations == max_iterations:
718
  print("final response::")
719
  print(response)
@@ -795,8 +796,7 @@ def answer_question(user_question, chatbot, audio=None):
795
  user_question = "Sorry, I could not understand the audio."
796
  except sr.RequestError:
797
  user_question = "Could not request results from Google Speech Recognition service."
798
- print("iterations::")
799
- print(iterations)
800
  while iterations < max_iterations:
801
 
802
  response = agent_executor.invoke({"input": user_question}, config={"callbacks": [langfuse_handler]})
 
713
  if "invalid" not in response_text.lower():
714
  break
715
  iterations += 1
716
+ print("iterations::")
717
+ print(iterations)
718
  if iterations == max_iterations:
719
  print("final response::")
720
  print(response)
 
796
  user_question = "Sorry, I could not understand the audio."
797
  except sr.RequestError:
798
  user_question = "Could not request results from Google Speech Recognition service."
799
+
 
800
  while iterations < max_iterations:
801
 
802
  response = agent_executor.invoke({"input": user_question}, config={"callbacks": [langfuse_handler]})