tatianija commited on
Commit
bffa900
·
verified ·
1 Parent(s): 60bc822

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -775,11 +775,12 @@ Answer:"""
775
  if self.debug:
776
  print("Using search-based approach")
777
  answer = self._answer_with_search(question_text, attachment_context)
 
778
  else:
779
  if self.debug:
780
  print("Using LLM-only approach")
781
  answer = self._answer_with_llm(question_text, attachment_context)
782
-
783
  # Cleanup temporary files
784
  if image_files or audio_files or code_files:
785
  try:
 
775
  if self.debug:
776
  print("Using search-based approach")
777
  answer = self._answer_with_search(question_text, attachment_context)
778
+ answer = remove_thinking_tags(answer)
779
  else:
780
  if self.debug:
781
  print("Using LLM-only approach")
782
  answer = self._answer_with_llm(question_text, attachment_context)
783
+ answer = remove_thinking_tags(answer)
784
  # Cleanup temporary files
785
  if image_files or audio_files or code_files:
786
  try: