Spaces:
Build error
Build error
Update agent.py
Browse files
agent.py
CHANGED
@@ -4,7 +4,7 @@ from smolagents import CodeAgent, DuckDuckGoSearchTool, InferenceClientModel
|
|
4 |
model = InferenceClientModel(model_id="meta-llama/Llama-2-7b-chat-hf") # Or another model
|
5 |
|
6 |
# Define custom tools if needed (optional)
|
7 |
-
from smolagents
|
8 |
|
9 |
@tool
|
10 |
def add(a: int, b: int) -> int:
|
|
|
4 |
model = InferenceClientModel(model_id="meta-llama/Llama-2-7b-chat-hf") # Or another model
|
5 |
|
6 |
# Define custom tools if needed (optional)
|
7 |
+
from smolagents import tool
|
8 |
|
9 |
@tool
|
10 |
def add(a: int, b: int) -> int:
|