dlaima commited on
Commit
b3f0a45
·
verified ·
1 Parent(s): abf0257

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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
- result = self.agent.run(query)
30
- return result.get("output", "No output returned")
 
 
 
 
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")