m-ric HF staff commited on
Commit
14eb38e
·
verified ·
1 Parent(s): 32e8831

Upload tool

Browse files
Files changed (4) hide show
  1. agent.json +8 -8
  2. app.py +0 -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
  "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
  }
 
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
- requests
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):