m-ric HF staff commited on
Commit
701eb1b
·
verified ·
1 Parent(s): 9eaa08b

Upload tool

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