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