Spaces:
Sleeping
Sleeping
Upload tool
Browse files- agent.json +7 -7
- app.py +1 -4
- requirements.txt +1 -1
agent.json
CHANGED
|
@@ -35,17 +35,17 @@
|
|
| 35 |
"name": null,
|
| 36 |
"description": null,
|
| 37 |
"authorized_imports": [
|
| 38 |
-
"
|
| 39 |
-
"re",
|
| 40 |
-
"itertools",
|
| 41 |
"random",
|
|
|
|
|
|
|
|
|
|
| 42 |
"queue",
|
|
|
|
| 43 |
"stat",
|
| 44 |
-
"statistics",
|
| 45 |
"time",
|
| 46 |
-
"math",
|
| 47 |
"datetime",
|
| 48 |
-
"
|
| 49 |
-
"
|
| 50 |
]
|
| 51 |
}
|
|
|
|
| 35 |
"name": null,
|
| 36 |
"description": null,
|
| 37 |
"authorized_imports": [
|
| 38 |
+
"math",
|
|
|
|
|
|
|
| 39 |
"random",
|
| 40 |
+
"unicodedata",
|
| 41 |
+
"collections",
|
| 42 |
+
"statistics",
|
| 43 |
"queue",
|
| 44 |
+
"itertools",
|
| 45 |
"stat",
|
|
|
|
| 46 |
"time",
|
|
|
|
| 47 |
"datetime",
|
| 48 |
+
"pandas",
|
| 49 |
+
"re"
|
| 50 |
]
|
| 51 |
}
|
app.py
CHANGED
|
@@ -11,11 +11,8 @@ data={'last_input_token_count': None, 'last_output_token_count': None, 'model_id
|
|
| 11 |
|
| 12 |
)
|
| 13 |
|
| 14 |
-
|
| 15 |
web_search = DuckDuckGoSearchTool()
|
| 16 |
-
|
| 17 |
visit_webpage = VisitWebpageTool()
|
| 18 |
-
|
| 19 |
final_answer = FinalAnswerTool()
|
| 20 |
|
| 21 |
|
|
@@ -35,7 +32,7 @@ agent = CodeAgent(
|
|
| 35 |
|
| 36 |
description=None,
|
| 37 |
|
| 38 |
-
authorized_imports=['
|
| 39 |
|
| 40 |
prompts_path='./prompts.yaml'
|
| 41 |
)
|
|
|
|
| 11 |
|
| 12 |
)
|
| 13 |
|
|
|
|
| 14 |
web_search = DuckDuckGoSearchTool()
|
|
|
|
| 15 |
visit_webpage = VisitWebpageTool()
|
|
|
|
| 16 |
final_answer = FinalAnswerTool()
|
| 17 |
|
| 18 |
|
|
|
|
| 32 |
|
| 33 |
description=None,
|
| 34 |
|
| 35 |
+
authorized_imports=['math', 'random', 'unicodedata', 'collections', 'statistics', 'queue', 'itertools', 'stat', 'time', 'datetime', 'pandas', 're'],
|
| 36 |
|
| 37 |
prompts_path='./prompts.yaml'
|
| 38 |
)
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
duckduckgo_search
|
|
|
|
| 2 |
smolagents
|
| 3 |
requests
|
| 4 |
-
markdownify
|
| 5 |
pandas
|
|
|
|
| 1 |
duckduckgo_search
|
| 2 |
+
markdownify
|
| 3 |
smolagents
|
| 4 |
requests
|
|
|
|
| 5 |
pandas
|