Upload tool
Browse files- agent.json +7 -7
- app.py +2 -2
- requirements.txt +2 -2
- tools/visit_webpage.py +1 -1
agent.json
CHANGED
@@ -35,17 +35,17 @@
|
|
35 |
"name": null,
|
36 |
"description": null,
|
37 |
"authorized_imports": [
|
|
|
38 |
"itertools",
|
39 |
-
"stat",
|
40 |
-
"queue",
|
41 |
-
"math",
|
42 |
"time",
|
43 |
-
"datetime",
|
44 |
"unicodedata",
|
|
|
45 |
"random",
|
|
|
46 |
"collections",
|
47 |
-
"
|
48 |
-
"
|
49 |
-
"
|
|
|
50 |
]
|
51 |
}
|
|
|
35 |
"name": null,
|
36 |
"description": null,
|
37 |
"authorized_imports": [
|
38 |
+
"re",
|
39 |
"itertools",
|
|
|
|
|
|
|
40 |
"time",
|
|
|
41 |
"unicodedata",
|
42 |
+
"pandas",
|
43 |
"random",
|
44 |
+
"math",
|
45 |
"collections",
|
46 |
+
"stat",
|
47 |
+
"datetime",
|
48 |
+
"queue",
|
49 |
+
"statistics"
|
50 |
]
|
51 |
}
|
app.py
CHANGED
@@ -7,7 +7,7 @@ from scripts.final_answer import FinalAnswerTool
|
|
7 |
|
8 |
|
9 |
model = HfApiModel(
|
10 |
-
model_id=Qwen/Qwen2.5-Coder-32B-Instruct
|
11 |
custom_role_conversions=None
|
12 |
|
13 |
)
|
@@ -33,7 +33,7 @@ agent = CodeAgent(
|
|
33 |
|
34 |
description=None,
|
35 |
|
36 |
-
authorized_imports=['
|
37 |
|
38 |
prompts_path='./prompts.yaml'
|
39 |
)
|
|
|
7 |
|
8 |
|
9 |
model = HfApiModel(
|
10 |
+
model_id='Qwen/Qwen2.5-Coder-32B-Instruct'
|
11 |
custom_role_conversions=None
|
12 |
|
13 |
)
|
|
|
33 |
|
34 |
description=None,
|
35 |
|
36 |
+
authorized_imports=['re', 'itertools', 'time', 'unicodedata', 'pandas', 'random', 'math', 'collections', 'stat', 'datetime', 'queue', 'statistics'],
|
37 |
|
38 |
prompts_path='./prompts.yaml'
|
39 |
)
|
requirements.txt
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
duckduckgo_search
|
2 |
-
smolagents
|
3 |
-
pandas
|
4 |
requests
|
|
|
|
|
5 |
markdownify
|
|
|
1 |
duckduckgo_search
|
|
|
|
|
2 |
requests
|
3 |
+
pandas
|
4 |
+
smolagents
|
5 |
markdownify
|
tools/visit_webpage.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
3 |
-
import smolagents
|
4 |
import requests
|
5 |
import markdownify
|
|
|
6 |
|
7 |
class VisitWebpageTool(Tool):
|
8 |
name = "visit_webpage"
|
|
|
1 |
from typing import Any, Optional
|
2 |
from smolagents.tools import Tool
|
|
|
3 |
import requests
|
4 |
import markdownify
|
5 |
+
import smolagents
|
6 |
|
7 |
class VisitWebpageTool(Tool):
|
8 |
name = "visit_webpage"
|