tatianija commited on
Commit
4e3bcb5
·
verified ·
1 Parent(s): 4f205dc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -798,7 +798,7 @@ Answer:"""
798
 
799
  if self.debug:
800
  print(f"Agent returning answer: {answer[:100]}...")
801
-
802
  return answer
803
 
804
  def __call__(self, question: str, image_files: List[str] = None, audio_files: List[str] = None) -> str:
@@ -837,7 +837,7 @@ Answer:"""
837
 
838
  if self.debug:
839
  print(f"Agent returning answer: {answer[:100]}...")
840
-
841
  return answer
842
 
843
  def fetch_questions() -> Tuple[str, Optional[pd.DataFrame]]:
 
798
 
799
  if self.debug:
800
  print(f"Agent returning answer: {answer[:100]}...")
801
+ answer = remove_thinking_tags(answer)
802
  return answer
803
 
804
  def __call__(self, question: str, image_files: List[str] = None, audio_files: List[str] = None) -> str:
 
837
 
838
  if self.debug:
839
  print(f"Agent returning answer: {answer[:100]}...")
840
+ answer = remove_thinking_tags(answer)
841
  return answer
842
 
843
  def fetch_questions() -> Tuple[str, Optional[pd.DataFrame]]: