Coool2 commited on
Commit
f9cd2ce
·
verified ·
1 Parent(s): adface3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -19,21 +19,14 @@ class BasicAgent:
19
  # Initialize your enhanced GAIA agent
20
  self.gaia_agent = EnhancedGAIAAgent()
21
 
22
- def __call__(self, question: str) -> str:
23
-
24
- # Use your GAIA agent instead of fixed answer
25
  try:
26
- # Create question data structure expected by your GAIA agent
27
  question_data = {
28
  "Question": question,
29
  "task_id": "basic_agent_task"
30
  }
31
-
32
- # Call your GAIA agent's solve method
33
- answer = self.gaia_agent.solve_gaia_question(question_data)
34
-
35
- return answer
36
-
37
  except Exception as e:
38
  return e, str(e)
39
 
 
19
  # Initialize your enhanced GAIA agent
20
  self.gaia_agent = EnhancedGAIAAgent()
21
 
22
+ async def __call__(self, question: str) -> str:
 
 
23
  try:
 
24
  question_data = {
25
  "Question": question,
26
  "task_id": "basic_agent_task"
27
  }
28
+ answer = await self.gaia_agent.solve_gaia_question(question_data)
29
+ return str(answer)
 
 
 
 
30
  except Exception as e:
31
  return e, str(e)
32