mnavas commited on
Commit
5e2322e
·
verified ·
1 Parent(s): 05fcf0f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ import requests
4
  import inspect
5
  import pandas as pd
6
  import smolagents
7
- from smolagents import CodeAgent, GoogleSearchTool, HfApiModel, VisitWebpageTool
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
@@ -16,7 +16,7 @@ class BasicAgent:
16
  def __init__(self):
17
  model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct") #, provider="together")
18
  self.agent = CodeAgent(
19
- tools=[GoogleSearchTool],
20
  model=model,
21
  add_base_tools=True, # Add any additional base tools
22
  max_steps=15,
 
4
  import inspect
5
  import pandas as pd
6
  import smolagents
7
+ from smolagents import CodeAgent, GoogleSearchTool, HfApiModel, VisitWebpageTool, PythonREPLTool
8
 
9
  # (Keep Constants as is)
10
  # --- Constants ---
 
16
  def __init__(self):
17
  model = HfApiModel(model_id="Qwen/Qwen2.5-Coder-32B-Instruct") #, provider="together")
18
  self.agent = CodeAgent(
19
+ tools=[GoogleSearchTool(), PythonREPLTool()],
20
  model=model,
21
  add_base_tools=True, # Add any additional base tools
22
  max_steps=15,