magdap116 commited on
Commit
14a7e7a
·
verified ·
1 Parent(s): 26ec83d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ import json
10
  from transformers import AutoTokenizer, AutoModelForCausalLM
11
  import torch
12
 
13
- class MathModelTool(BaseTool):
14
  name = "math_model"
15
  description = "Answers advanced math questions using a pretrained math model."
16
 
@@ -80,7 +80,7 @@ class BasicAgent:
80
  print("BasicAgent initialized.")
81
  self.agent = CodeAgent(
82
  model=model,
83
- tools=[web_search,python_interpreter,visit_webpage_tool],
84
  max_steps=2,
85
  verbosity_level=1,
86
  grammar=None,
 
10
  from transformers import AutoTokenizer, AutoModelForCausalLM
11
  import torch
12
 
13
+ class math_model_tool(BaseTool):
14
  name = "math_model"
15
  description = "Answers advanced math questions using a pretrained math model."
16
 
 
80
  print("BasicAgent initialized.")
81
  self.agent = CodeAgent(
82
  model=model,
83
+ tools=[web_search,python_interpreter,visit_webpage_tool,math_model_tool],
84
  max_steps=2,
85
  verbosity_level=1,
86
  grammar=None,