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

Upload tool

Browse files
Files changed (4) hide show
  1. agent.json +8 -8
  2. app.py +4 -2
  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
- "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
  }
 
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
  }
app.py CHANGED
@@ -7,7 +7,9 @@ from scripts.final_answer import FinalAnswerTool
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,7 +25,7 @@ agent = CodeAgent(
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
 
 
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
  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
 
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
- pandas
2
- smolagents
3
- markdownify
4
  duckduckgo_search
 
 
5
  requests
 
 
 
 
 
1
  duckduckgo_search
2
+ markdownify
3
+ smolagents
4
  requests
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 requests
4
  import markdownify
 
5
  import smolagents
6
 
7
  class VisitWebpageTool(Tool):
 
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):