m-ric HF staff commited on
Commit
fa1d5b1
·
verified ·
1 Parent(s): 6f5c32f

Upload tool

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