Spaces:
Sleeping
Sleeping
Upload tool
Browse files- agent.json +9 -9
- app.py +1 -1
- requirements.txt +1 -1
- tools/visit_webpage.py +2 -2
agent.json
CHANGED
|
@@ -35,17 +35,17 @@
|
|
| 35 |
"name": null,
|
| 36 |
"description": null,
|
| 37 |
"authorized_imports": [
|
| 38 |
-
"
|
| 39 |
-
"re",
|
| 40 |
-
"pandas",
|
| 41 |
"queue",
|
| 42 |
-
"random",
|
| 43 |
"stat",
|
| 44 |
-
"datetime",
|
| 45 |
-
"unicodedata",
|
| 46 |
-
"time",
|
| 47 |
-
"statistics",
|
| 48 |
"itertools",
|
| 49 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
]
|
| 51 |
}
|
|
|
|
| 35 |
"name": null,
|
| 36 |
"description": null,
|
| 37 |
"authorized_imports": [
|
| 38 |
+
"datetime",
|
|
|
|
|
|
|
| 39 |
"queue",
|
|
|
|
| 40 |
"stat",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
"itertools",
|
| 42 |
+
"pandas",
|
| 43 |
+
"random",
|
| 44 |
+
"collections",
|
| 45 |
+
"math",
|
| 46 |
+
"statistics",
|
| 47 |
+
"unicodedata",
|
| 48 |
+
"re",
|
| 49 |
+
"time"
|
| 50 |
]
|
| 51 |
}
|
app.py
CHANGED
|
@@ -17,7 +17,7 @@ agent = CodeAgent(
|
|
| 17 |
planning_interval=None,
|
| 18 |
name=None,
|
| 19 |
description=None,
|
| 20 |
-
authorized_imports=['
|
| 21 |
prompts_path='./prompts.yaml'
|
| 22 |
)
|
| 23 |
|
|
|
|
| 17 |
planning_interval=None,
|
| 18 |
name=None,
|
| 19 |
description=None,
|
| 20 |
+
authorized_imports=['datetime', 'queue', 'stat', 'itertools', 'pandas', 'random', 'collections', 'math', 'statistics', 'unicodedata', 're', 'time'],
|
| 21 |
prompts_path='./prompts.yaml'
|
| 22 |
)
|
| 23 |
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
|
|
| 1 |
requests
|
| 2 |
duckduckgo_search
|
| 3 |
pandas
|
| 4 |
-
smolagents
|
| 5 |
markdownify
|
|
|
|
| 1 |
+
smolagents
|
| 2 |
requests
|
| 3 |
duckduckgo_search
|
| 4 |
pandas
|
|
|
|
| 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 requests
|
| 4 |
-
import smolagents
|
| 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 markdownify
|
| 4 |
+
import smolagents
|
| 5 |
+
import requests
|
| 6 |
|
| 7 |
class VisitWebpageTool(Tool):
|
| 8 |
name = "visit_webpage"
|