magdap116 commited on
Commit
2519edf
·
verified ·
1 Parent(s): d3a65b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -24,7 +24,7 @@ print("Made dir")
24
  web_search = DuckDuckGoSearchTool()
25
  python_interpreter = PythonInterpreterTool()
26
  visit_webpage_tool = VisitWebpageTool()
27
- #model_math_tool = ModelMathTool()
28
 
29
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
30
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
@@ -103,8 +103,8 @@ class BasicAgent:
103
  print("BasicAgent initialized.")
104
  self.agent = CodeAgent(
105
  model=model,
106
- tools=[web_search,python_interpreter,visit_webpage_tool],
107
- max_steps=1,
108
  verbosity_level=1,
109
  grammar=None,
110
  planning_interval=1,
 
24
  web_search = DuckDuckGoSearchTool()
25
  python_interpreter = PythonInterpreterTool()
26
  visit_webpage_tool = VisitWebpageTool()
27
+ model_math_tool = ModelMathTool()
28
 
29
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
30
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
 
103
  print("BasicAgent initialized.")
104
  self.agent = CodeAgent(
105
  model=model,
106
+ tools=[web_search,python_interpreter,visit_webpage_tool,model_math_tool],
107
+ max_steps=3,
108
  verbosity_level=1,
109
  grammar=None,
110
  planning_interval=1,