m-ric HF staff commited on
Commit
210979f
·
verified ·
1 Parent(s): 075dd62

Upload tool

Browse files
Files changed (4) hide show
  1. agent.json +7 -7
  2. app.py +1 -1
  3. requirements.txt +3 -3
  4. tools/visit_webpage.py +2 -2
agent.json CHANGED
@@ -30,17 +30,17 @@
30
  "name": null,
31
  "description": null,
32
  "authorized_imports": [
33
- "math",
34
  "re",
35
- "time",
36
  "collections",
37
- "stat",
38
  "statistics",
39
- "pandas",
40
  "itertools",
41
- "datetime",
42
  "queue",
43
- "random",
44
- "unicodedata"
 
 
45
  ]
46
  }
 
30
  "name": null,
31
  "description": null,
32
  "authorized_imports": [
33
+ "unicodedata",
34
  "re",
35
+ "math",
36
  "collections",
 
37
  "statistics",
 
38
  "itertools",
39
+ "stat",
40
  "queue",
41
+ "pandas",
42
+ "time",
43
+ "datetime",
44
+ "random"
45
  ]
46
  }
app.py CHANGED
@@ -17,7 +17,7 @@ agent = CodeAgent(
17
  planning_interval=None,
18
  name=None,
19
  description=None,
20
- authorized_imports=['math', 're', 'time', 'collections', 'stat', 'statistics', 'pandas', 'itertools', 'datetime', 'queue', 'random', 'unicodedata'],
21
  prompts_path='./prompts.yaml'
22
  )
23
 
 
17
  planning_interval=None,
18
  name=None,
19
  description=None,
20
+ authorized_imports=['unicodedata', 're', 'math', 'collections', 'statistics', 'itertools', 'stat', 'queue', 'pandas', 'time', 'datetime', 'random'],
21
  prompts_path='./prompts.yaml'
22
  )
23
 
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  smolagents
2
- duckduckgo_search
3
- pandas
4
- markdownify
5
  requests
 
 
 
 
1
  smolagents
 
 
 
2
  requests
3
+ markdownify
4
+ pandas
5
+ duckduckgo_search
tools/visit_webpage.py CHANGED
@@ -1,7 +1,7 @@
1
  from smolagents.tools import Tool
2
- import markdownify
3
- import requests
4
  import smolagents
 
 
5
 
6
  class VisitWebpageTool(Tool):
7
  name = "visit_webpage"
 
1
  from smolagents.tools import Tool
 
 
2
  import smolagents
3
+ import requests
4
+ import markdownify
5
 
6
  class VisitWebpageTool(Tool):
7
  name = "visit_webpage"