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