Spaces:
Sleeping
Sleeping
compability
Browse files
app.py
CHANGED
|
@@ -184,20 +184,21 @@ class GaiaAgent:
|
|
| 184 |
max_tokens=1200,
|
| 185 |
)
|
| 186 |
|
| 187 |
-
|
| 188 |
-
|
| 189 |
-
|
| 190 |
-
|
| 191 |
-
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
|
|
|
| 201 |
)
|
| 202 |
|
| 203 |
def __call__(self, question: str, task_id: str) -> str:
|
|
|
|
| 184 |
max_tokens=1200,
|
| 185 |
)
|
| 186 |
|
| 187 |
+
self.agent = CodeAgent(
|
| 188 |
+
model=self.model,
|
| 189 |
+
tools=[
|
| 190 |
+
DuckDuckGoSearchTool(),
|
| 191 |
+
VisitWebpageTool(),
|
| 192 |
+
get_task_file_url,
|
| 193 |
+
download_file,
|
| 194 |
+
inspect_local_text_file,
|
| 195 |
+
analyze_spreadsheet,
|
| 196 |
+
python_compute,
|
| 197 |
+
],
|
| 198 |
+
add_base_tools=False,
|
| 199 |
+
max_steps=10,
|
| 200 |
+
instructions=SYSTEM_PROMPT,
|
| 201 |
+
)
|
| 202 |
)
|
| 203 |
|
| 204 |
def __call__(self, question: str, task_id: str) -> str:
|