Spaces:
Sleeping
Sleeping
don't modify model
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import inspect
|
|
| 5 |
import pandas as pd
|
| 6 |
|
| 7 |
# Updated smolagents import
|
| 8 |
-
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
| 9 |
|
| 10 |
# (Keep Constants as is)
|
| 11 |
# --- Constants ---
|
|
@@ -18,7 +18,7 @@ class MyAgent:
|
|
| 18 |
# Standard tools for CodeAgent
|
| 19 |
self.tools = [DuckDuckGoSearchTool()]
|
| 20 |
# You can add more tools if needed
|
| 21 |
-
self.agent = CodeAgent(tools=self.tools
|
| 22 |
|
| 23 |
def __call__(self, question: str) -> str:
|
| 24 |
# Use the agent to answer the question
|
|
|
|
| 5 |
import pandas as pd
|
| 6 |
|
| 7 |
# Updated smolagents import
|
| 8 |
+
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
| 9 |
|
| 10 |
# (Keep Constants as is)
|
| 11 |
# --- Constants ---
|
|
|
|
| 18 |
# Standard tools for CodeAgent
|
| 19 |
self.tools = [DuckDuckGoSearchTool()]
|
| 20 |
# You can add more tools if needed
|
| 21 |
+
self.agent = CodeAgent(tools=self.tools)
|
| 22 |
|
| 23 |
def __call__(self, question: str) -> str:
|
| 24 |
# Use the agent to answer the question
|