Spaces:
Sleeping
Sleeping
Update BasicAgent.py
Browse files- BasicAgent.py +14 -4
BasicAgent.py
CHANGED
@@ -1,6 +1,16 @@
|
|
1 |
-
import smolagents
|
2 |
-
from smolagents import
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
#model_id = "Qwen/Qwen2.5-Coder-32B-Instruct"
|
6 |
#model_id = 'meta-llama/Llama-3.3-70B-Instruct'
|
@@ -30,7 +40,7 @@ class newAgent:
|
|
30 |
#↓ Replace .run with whatever method actually returns the answer string.
|
31 |
return answer
|
32 |
|
33 |
-
|
34 |
|
35 |
#agent.run(
|
36 |
# "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
|
|
|
1 |
+
import smolagents, numpy, math, xlrd, os
|
2 |
+
from smolagents import (
|
3 |
+
CodeAgent,
|
4 |
+
HfApiModel,
|
5 |
+
InferenceClientModel,
|
6 |
+
WebSearchTool,
|
7 |
+
PythonInterpreterTool,
|
8 |
+
FinalAnswerTool,
|
9 |
+
DuckDuckGoSearchTool,
|
10 |
+
GoogleSearchTool,
|
11 |
+
VistWebpagetool
|
12 |
+
|
13 |
+
)
|
14 |
|
15 |
#model_id = "Qwen/Qwen2.5-Coder-32B-Instruct"
|
16 |
#model_id = 'meta-llama/Llama-3.3-70B-Instruct'
|
|
|
40 |
#↓ Replace .run with whatever method actually returns the answer string.
|
41 |
return answer
|
42 |
|
43 |
+
#answer = self.run
|
44 |
|
45 |
#agent.run(
|
46 |
# "At what temperature and for how long should I bake French baguettes made with type 65 flour?",
|