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

Upload tool

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