Spaces:
Runtime error
Runtime error
Upload tool
Browse files- agent.json +6 -6
- app.py +1 -1
- requirements.txt +3 -3
- tools/visit_webpage.py +1 -1
agent.json
CHANGED
|
@@ -30,17 +30,17 @@
|
|
| 30 |
"name": null,
|
| 31 |
"description": null,
|
| 32 |
"authorized_imports": [
|
| 33 |
-
"itertools",
|
| 34 |
"statistics",
|
| 35 |
-
"
|
| 36 |
"re",
|
| 37 |
-
"
|
|
|
|
| 38 |
"stat",
|
| 39 |
-
"math",
|
| 40 |
"unicodedata",
|
| 41 |
-
"datetime",
|
| 42 |
-
"collections",
|
| 43 |
"random",
|
|
|
|
|
|
|
|
|
|
| 44 |
"pandas"
|
| 45 |
]
|
| 46 |
}
|
|
|
|
| 30 |
"name": null,
|
| 31 |
"description": null,
|
| 32 |
"authorized_imports": [
|
|
|
|
| 33 |
"statistics",
|
| 34 |
+
"itertools",
|
| 35 |
"re",
|
| 36 |
+
"queue",
|
| 37 |
+
"collections",
|
| 38 |
"stat",
|
|
|
|
| 39 |
"unicodedata",
|
|
|
|
|
|
|
| 40 |
"random",
|
| 41 |
+
"time",
|
| 42 |
+
"datetime",
|
| 43 |
+
"math",
|
| 44 |
"pandas"
|
| 45 |
]
|
| 46 |
}
|
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=['statistics', 'itertools', 're', 'queue', 'collections', 'stat', 'unicodedata', 'random', 'time', 'datetime', 'math', 'pandas'],
|
| 21 |
prompts_path='./prompts.yaml'
|
| 22 |
)
|
| 23 |
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
-
duckduckgo_search
|
| 2 |
markdownify
|
| 3 |
-
requests
|
| 4 |
-
pandas
|
| 5 |
smolagents
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
markdownify
|
|
|
|
|
|
|
| 2 |
smolagents
|
| 3 |
+
pandas
|
| 4 |
+
duckduckgo_search
|
| 5 |
+
requests
|
tools/visit_webpage.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
from smolagents.tools import Tool
|
|
|
|
| 2 |
import requests
|
| 3 |
import smolagents
|
| 4 |
-
import markdownify
|
| 5 |
|
| 6 |
class VisitWebpageTool(Tool):
|
| 7 |
name = "visit_webpage"
|
|
|
|
| 1 |
from smolagents.tools import Tool
|
| 2 |
+
import markdownify
|
| 3 |
import requests
|
| 4 |
import smolagents
|
|
|
|
| 5 |
|
| 6 |
class VisitWebpageTool(Tool):
|
| 7 |
name = "visit_webpage"
|