Spaces:
Sleeping
Sleeping
Update BasicAgent.py
Browse files- BasicAgent.py +2 -1
BasicAgent.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
from smolagents import CodeAgent, HfApiModel, InferenceClientModel, WebSearchTool
|
2 |
import numpy, math, xlrd, os
|
3 |
|
@@ -8,7 +9,7 @@ model = HfApiModel(model_id=model_id, token="HUGGINGFACEHUB_API_TOKEN")
|
|
8 |
|
9 |
agent = CodeAgent(tools=[], model=model, add_base_tools=True)
|
10 |
|
11 |
-
|
12 |
|
13 |
|
14 |
#agent.run(
|
|
|
1 |
+
import smolagents
|
2 |
from smolagents import CodeAgent, HfApiModel, InferenceClientModel, WebSearchTool
|
3 |
import numpy, math, xlrd, os
|
4 |
|
|
|
9 |
|
10 |
agent = CodeAgent(tools=[], model=model, add_base_tools=True)
|
11 |
|
12 |
+
max_steps=5
|
13 |
|
14 |
|
15 |
#agent.run(
|