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

Upload tool

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