Spaces:
Sleeping
Sleeping
Update gemini_agent.py
Browse files- gemini_agent.py +1 -7
gemini_agent.py
CHANGED
|
@@ -156,13 +156,7 @@ Provide only the direct answer. If it's a quote, give just the quoted text. If i
|
|
| 156 |
|
| 157 |
async def _handle_text_question(self, question: str) -> str:
|
| 158 |
"""Handle regular text-based questions"""
|
| 159 |
-
|
| 160 |
-
if question.strip().endswith('dnatsrednu uoy fI'):
|
| 161 |
-
reversed_part = question.split(',')[0]
|
| 162 |
-
decoded = reversed_part[::-1]
|
| 163 |
-
if 'left' in decoded.lower():
|
| 164 |
-
return "Right"
|
| 165 |
-
|
| 166 |
# Handle attached file questions with enhanced prompts
|
| 167 |
if 'attached' in question.lower():
|
| 168 |
if 'python code' in question.lower():
|
|
|
|
| 156 |
|
| 157 |
async def _handle_text_question(self, question: str) -> str:
|
| 158 |
"""Handle regular text-based questions"""
|
| 159 |
+
prompt = ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 160 |
# Handle attached file questions with enhanced prompts
|
| 161 |
if 'attached' in question.lower():
|
| 162 |
if 'python code' in question.lower():
|