yangminded commited on
Commit
7a4855e
·
verified ·
1 Parent(s): fd5134b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -61,8 +61,8 @@ class BasicAgent:
61
  tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()], ## add your tools here (don't remove final answer),
62
  additional_authorized_imports=['pandas'],
63
  max_steps=6,
64
- verbosity_level=1,
65
- step_callbacks=[delay_execution_10]
66
  )
67
 
68
  #self.agent.prompt_templates['']
@@ -75,13 +75,6 @@ class BasicAgent:
75
  print(f"Agent returning answer: {answer}")
76
  return answer
77
 
78
- def delay_execution_10(self) -> bool:
79
- """
80
- Delays the execution for 10 seconds.
81
- """
82
- time.sleep(10)
83
- return True
84
-
85
  def run_and_submit_all( profile: gr.OAuthProfile | None):
86
  """
87
  Fetches all questions, runs the BasicAgent on them, submits all answers,
 
61
  tools=[FinalAnswerTool(), DuckDuckGoSearchTool(), VisitWebpageTool()], ## add your tools here (don't remove final answer),
62
  additional_authorized_imports=['pandas'],
63
  max_steps=6,
64
+ verbosity_level=1
65
+ #step_callbacks=[delay_execution_10]
66
  )
67
 
68
  #self.agent.prompt_templates['']
 
75
  print(f"Agent returning answer: {answer}")
76
  return answer
77
 
 
 
 
 
 
 
 
78
  def run_and_submit_all( profile: gr.OAuthProfile | None):
79
  """
80
  Fetches all questions, runs the BasicAgent on them, submits all answers,