Spaces:
Runtime error
Runtime error
Commit ·
32e125f
1
Parent(s): 4f18cba
🚧 Some cleaning
Browse files
app.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
from typing import Any
|
| 2 |
import os
|
| 3 |
-
import yaml
|
| 4 |
import gradio as gr
|
| 5 |
import pandas as pd
|
| 6 |
import requests
|
|
@@ -20,6 +19,7 @@ from smolagents import (
|
|
| 20 |
# --- Constants ---
|
| 21 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 22 |
|
|
|
|
| 23 |
final_answer = FinalAnswerTool()
|
| 24 |
web_search = WebSearchTool(engine="bing")
|
| 25 |
visit_webpage = VisitWebpageTool()
|
|
@@ -110,7 +110,14 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
| 110 |
agent = GaiaAgent(
|
| 111 |
api_url,
|
| 112 |
model=model,
|
| 113 |
-
tools=[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
max_steps=6,
|
| 115 |
verbosity_level=1,
|
| 116 |
grammar=None,
|
|
|
|
| 1 |
from typing import Any
|
| 2 |
import os
|
|
|
|
| 3 |
import gradio as gr
|
| 4 |
import pandas as pd
|
| 5 |
import requests
|
|
|
|
| 19 |
# --- Constants ---
|
| 20 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 21 |
|
| 22 |
+
|
| 23 |
final_answer = FinalAnswerTool()
|
| 24 |
web_search = WebSearchTool(engine="bing")
|
| 25 |
visit_webpage = VisitWebpageTool()
|
|
|
|
| 110 |
agent = GaiaAgent(
|
| 111 |
api_url,
|
| 112 |
model=model,
|
| 113 |
+
tools=[
|
| 114 |
+
final_answer,
|
| 115 |
+
web_search,
|
| 116 |
+
visit_webpage,
|
| 117 |
+
wiki_search,
|
| 118 |
+
list_wikipedia_sections,
|
| 119 |
+
count_tables_in_wikipedia_section,
|
| 120 |
+
],
|
| 121 |
max_steps=6,
|
| 122 |
verbosity_level=1,
|
| 123 |
grammar=None,
|