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