Update app.py
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ class BasicAgent:
|
|
| 87 |
#description="Analyses images to locate and describe objects in them.",
|
| 88 |
#trust_remote_code=True,
|
| 89 |
#)
|
| 90 |
-
|
| 91 |
precise, because answers are graded by EXACT STRING MATCH against a ground
|
| 92 |
truth — no extra words, no units unless explicitly asked, no restating the
|
| 93 |
question, no "FINAL ANSWER:" prefix, no explanation in the final output.
|
|
@@ -154,7 +154,7 @@ class BasicAgent:
|
|
| 154 |
#image_analysis_tool,
|
| 155 |
],
|
| 156 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 157 |
-
instructions =
|
| 158 |
max_steps=20,
|
| 159 |
)
|
| 160 |
#answering questions
|
|
|
|
| 87 |
#description="Analyses images to locate and describe objects in them.",
|
| 88 |
#trust_remote_code=True,
|
| 89 |
#)
|
| 90 |
+
"""You are a research agent solving GAIA benchmark questions. You must be
|
| 91 |
precise, because answers are graded by EXACT STRING MATCH against a ground
|
| 92 |
truth — no extra words, no units unless explicitly asked, no restating the
|
| 93 |
question, no "FINAL ANSWER:" prefix, no explanation in the final output.
|
|
|
|
| 154 |
#image_analysis_tool,
|
| 155 |
],
|
| 156 |
model= InferenceClientModel("Qwen/Qwen2.5-Coder-32B-Instruct"),
|
| 157 |
+
instructions = "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.",
|
| 158 |
max_steps=20,
|
| 159 |
)
|
| 160 |
#answering questions
|