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