m-ric HF staff commited on
Commit
ccf4c06
·
verified ·
1 Parent(s): c4ec8b7

Upload tool

Browse files
Files changed (4) hide show
  1. agent.json +8 -8
  2. app.py +3 -3
  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
  "math",
39
- "collections",
40
- "random",
41
- "time",
42
- "stat",
43
  "re",
44
- "unicodedata",
45
  "pandas",
 
46
  "queue",
47
- "statistics",
48
- "datetime",
49
- "itertools"
 
 
50
  ]
51
  }
 
35
  "name": null,
36
  "description": null,
37
  "authorized_imports": [
38
+ "datetime",
39
  "math",
 
 
 
 
40
  "re",
41
+ "statistics",
42
  "pandas",
43
+ "collections",
44
  "queue",
45
+ "time",
46
+ "unicodedata",
47
+ "stat",
48
+ "itertools",
49
+ "random"
50
  ]
51
  }
app.py CHANGED
@@ -8,8 +8,8 @@ from scripts.final_answer import FinalAnswerTool
8
 
9
  model = HfApiModel(
10
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
11
- custom_role_conversions=None,
12
- )
13
 
14
  web_search = DuckDuckGoSearchTool()
15
  visit_webpage = VisitWebpageTool()
@@ -25,7 +25,7 @@ agent = CodeAgent(
25
  planning_interval=None,
26
  name=None,
27
  description=None,
28
- authorized_imports=['math', 'collections', 'random', 'time', 'stat', 're', 'unicodedata', 'pandas', 'queue', 'statistics', 'datetime', 'itertools'],
29
 
30
  prompts_path='./prompts.yaml'
31
  )
 
8
 
9
  model = HfApiModel(
10
  model_id='Qwen/Qwen2.5-Coder-32B-Instruct',
11
+ custom_role_conversions=None,
12
+ )
13
 
14
  web_search = DuckDuckGoSearchTool()
15
  visit_webpage = VisitWebpageTool()
 
25
  planning_interval=None,
26
  name=None,
27
  description=None,
28
+ authorized_imports=['datetime', 'math', 're', 'statistics', 'pandas', 'collections', 'queue', 'time', 'unicodedata', 'stat', 'itertools', 'random'],
29
 
30
  prompts_path='./prompts.yaml'
31
  )
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- duckduckgo_search
2
- pandas
3
  markdownify
4
- smolagents
5
  requests
 
 
 
 
 
1
  markdownify
2
+ duckduckgo_search
3
  requests
4
+ smolagents
5
+ pandas
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):