Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -158,7 +158,9 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 158 |
print(f"Using Tavily API key: {tavily_api_key[:4]}... (truncated for security)")
|
| 159 |
|
| 160 |
travily_api_search_tool = get_travily_api_search_tool(tavily_api_key)
|
| 161 |
-
tools = [ repl_tool, file_saver_tool,audio_transcriber_tool,travily_api_search_tool, gemini_multimodal_tool, wikipedia_search_tool2]
|
|
|
|
|
|
|
| 162 |
|
| 163 |
|
| 164 |
EX5_OBSERVATION_STRING = (
|
|
@@ -181,7 +183,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 181 |
|
| 182 |
**STRICT RULES FOR FINAL ANSWER CONTENT:**
|
| 183 |
1. **Numbers:** Do NOT use commas (e.g., '1000000' instead of '1,000,000'). Do NOT use units ($ or % or degrees Celsius/Fahrenheit) unless explicitly requested in the question.
|
| 184 |
-
2. **Strings (Words):** Do NOT use articles (a, an, the). Do NOT use abbreviations (e.g., 'New York' instead of 'NYC'). Write digits in plain text unless specified otherwise (e.g., 'two' instead of '2' if it's part of a string answer and not a numerical answer).
|
| 185 |
3. **Comma-Separated Lists:** Apply the above rules (numbers or strings) to each element in the list.
|
| 186 |
|
| 187 |
**Your response MUST always start with 'Thought:'. Your FINAL ANSWER must be preceded by 'Final Answer: '.**
|
|
|
|
| 158 |
print(f"Using Tavily API key: {tavily_api_key[:4]}... (truncated for security)")
|
| 159 |
|
| 160 |
travily_api_search_tool = get_travily_api_search_tool(tavily_api_key)
|
| 161 |
+
#tools = [ repl_tool, file_saver_tool,audio_transcriber_tool,travily_api_search_tool, gemini_multimodal_tool, wikipedia_search_tool2]
|
| 162 |
+
tools = [ repl_tool, file_saver_tool,audio_transcriber_tool,travily_api_search_tool, gemini_multimodal_tool]
|
| 163 |
+
|
| 164 |
|
| 165 |
|
| 166 |
EX5_OBSERVATION_STRING = (
|
|
|
|
| 183 |
|
| 184 |
**STRICT RULES FOR FINAL ANSWER CONTENT:**
|
| 185 |
1. **Numbers:** Do NOT use commas (e.g., '1000000' instead of '1,000,000'). Do NOT use units ($ or % or degrees Celsius/Fahrenheit) unless explicitly requested in the question.
|
| 186 |
+
2. **Strings (Words):** Do NOT use articles (a, an, the). Do NOT use abbreviations (e.g., 'New York' instead of 'NYC', e.g., 'Saint' instead of 'St'). Write digits in plain text unless specified otherwise (e.g., 'two' instead of '2' if it's part of a string answer and not a numerical answer).
|
| 187 |
3. **Comma-Separated Lists:** Apply the above rules (numbers or strings) to each element in the list.
|
| 188 |
|
| 189 |
**Your response MUST always start with 'Thought:'. Your FINAL ANSWER must be preceded by 'Final Answer: '.**
|