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

Upload tool

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