Update app.py
Browse files
app.py
CHANGED
|
@@ -169,15 +169,15 @@ class BasicAgent:
|
|
| 169 |
#read_pdf,
|
| 170 |
read_spreadsheet,
|
| 171 |
get_youtube_transcript,
|
| 172 |
-
|
| 173 |
-
|
| 174 |
],
|
| 175 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct") ,
|
| 176 |
additional_authorized_imports=["pandas", "requests", "re"],
|
| 177 |
instructions = ("You are an advanced CodeAgent that will show your capabilities to work in the real world by being tested in GAIA, the agent testing platform. If the question includes a task_id and mentions a file, call fetch_task_file first; route YouTube URLs to get_youtube_transcript, other URLs to visit_webpage, PDFs to pdf_tool, and spreadsheets to read_spreadsheet, using web_search only when no URL or file is given,then respond with only the exact final answer value, no explanation, no prefix."
|
| 178 |
"Use the Thought Action observation to produce high quality results and only answer when you are sure you have performed the necessary steps for the task and question"
|
| 179 |
-
"If the file is an image, use
|
| 180 |
-
"what to find. If the file is audio, use
|
| 181 |
"Use the PythonInterpreterTool for code interpretation in python"),
|
| 182 |
max_steps=20,
|
| 183 |
)
|
|
|
|
| 169 |
#read_pdf,
|
| 170 |
read_spreadsheet,
|
| 171 |
get_youtube_transcript,
|
| 172 |
+
analyze_image,
|
| 173 |
+
transcribe_audio,
|
| 174 |
],
|
| 175 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct") ,
|
| 176 |
additional_authorized_imports=["pandas", "requests", "re"],
|
| 177 |
instructions = ("You are an advanced CodeAgent that will show your capabilities to work in the real world by being tested in GAIA, the agent testing platform. If the question includes a task_id and mentions a file, call fetch_task_file first; route YouTube URLs to get_youtube_transcript, other URLs to visit_webpage, PDFs to pdf_tool, and spreadsheets to read_spreadsheet, using web_search only when no URL or file is given,then respond with only the exact final answer value, no explanation, no prefix."
|
| 178 |
"Use the Thought Action observation to produce high quality results and only answer when you are sure you have performed the necessary steps for the task and question"
|
| 179 |
+
"If the file is an image, use analyze_image with a specific question about it"
|
| 180 |
+
"what to find. If the file is audio, use transcribe_audio first, then reason over the transcribed text "
|
| 181 |
"Use the PythonInterpreterTool for code interpretation in python"),
|
| 182 |
max_steps=20,
|
| 183 |
)
|