m-ric HF staff commited on
Commit
2b80a97
·
verified ·
1 Parent(s): 737bce2

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