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