Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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,
|