Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -826,11 +826,12 @@ Answer:"""
|
|
| 826 |
if self.debug:
|
| 827 |
print("Using search-based approach")
|
| 828 |
answer = self._answer_with_search(question, attachment_context)
|
|
|
|
| 829 |
else:
|
| 830 |
if self.debug:
|
| 831 |
print("Using LLM-only approach")
|
| 832 |
answer = self._answer_with_llm(question, attachment_context)
|
| 833 |
-
|
| 834 |
except Exception as e:
|
| 835 |
answer = f"Sorry, I encountered an error: {e}"
|
| 836 |
|
|
|
|
| 826 |
if self.debug:
|
| 827 |
print("Using search-based approach")
|
| 828 |
answer = self._answer_with_search(question, attachment_context)
|
| 829 |
+
answer = remove_thinking_tags(answer)
|
| 830 |
else:
|
| 831 |
if self.debug:
|
| 832 |
print("Using LLM-only approach")
|
| 833 |
answer = self._answer_with_llm(question, attachment_context)
|
| 834 |
+
answer = remove_thinking_tags(answer)
|
| 835 |
except Exception as e:
|
| 836 |
answer = f"Sorry, I encountered an error: {e}"
|
| 837 |
|