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