Spaces:
Sleeping
Sleeping
Upload testAgent0.py
Browse files- testAgent0.py +16 -0
testAgent0.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from smolagents import CodeAgent, HfApiModel, InferenceClientModel, WebSearchTool
|
2 |
+
import numpy, math, xlrd, os
|
3 |
+
|
4 |
+
#model_id = "Qwen/Qwen2.5-Coder-32B-Instruct"
|
5 |
+
model_id = 'meta-llama/Llama-3.3-70B-Instruct'
|
6 |
+
|
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(
|
15 |
+
# "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
|
16 |
+
#)
|