Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,7 @@ from wikipedia_searcher import WikipediaSearcher
|
|
| 11 |
|
| 12 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 13 |
|
|
|
|
| 14 |
class GaiaAgent:
|
| 15 |
def __init__(self):
|
| 16 |
tools = [
|
|
@@ -26,8 +27,12 @@ class GaiaAgent:
|
|
| 26 |
)
|
| 27 |
|
| 28 |
def __call__(self, query: str) -> str:
|
| 29 |
-
|
| 30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 33 |
space_id = os.getenv("SPACE_ID")
|
|
|
|
| 11 |
|
| 12 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
| 13 |
|
| 14 |
+
|
| 15 |
class GaiaAgent:
|
| 16 |
def __init__(self):
|
| 17 |
tools = [
|
|
|
|
| 27 |
)
|
| 28 |
|
| 29 |
def __call__(self, query: str) -> str:
|
| 30 |
+
return self.agent.run(query)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
|
| 36 |
|
| 37 |
def run_and_submit_all(profile: gr.OAuthProfile | None):
|
| 38 |
space_id = os.getenv("SPACE_ID")
|