sqfoo commited on
Commit
b59a341
·
verified ·
1 Parent(s): 805ed42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -15,7 +15,7 @@ class BasicAgent:
15
 
16
  def __call__(self, task: dict) -> str:
17
  try:
18
- response = self.agent(task)
19
  return response
20
  except Exception as e:
21
  print(f"Error is raised: {str(e)}")
 
15
 
16
  def __call__(self, task: dict) -> str:
17
  try:
18
+ response = self.agent.run(task)
19
  return response
20
  except Exception as e:
21
  print(f"Error is raised: {str(e)}")