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