m-ric HF staff commited on
Commit
82203f1
·
verified ·
1 Parent(s): 7c0162f

Upload tool

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