BenjaminKaindu0506 commited on
Commit
a7ec422
·
verified ·
1 Parent(s): 69befd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -169,15 +169,15 @@ class BasicAgent:
169
  #read_pdf,
170
  read_spreadsheet,
171
  get_youtube_transcript,
172
- AnalyzeImageTool,
173
- TranscribeAudioTool
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 AnalyzeImageTool with a specific question about it"
180
- "what to find. If the file is audio, use TranscribeAudioTool first, then reason over the transcribed text "
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
  )