Spaces:
Runtime error
Runtime error
Upload agent
Browse files- agent.json +12 -12
- requirements.txt +1 -1
- tools/visit_webpage.py +2 -2
agent.json
CHANGED
|
@@ -10,8 +10,8 @@
|
|
| 10 |
"model": {
|
| 11 |
"class": "HfApiModel",
|
| 12 |
"data": {
|
| 13 |
-
"last_input_token_count":
|
| 14 |
-
"last_output_token_count":
|
| 15 |
"model_id": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 16 |
"provider": null
|
| 17 |
}
|
|
@@ -43,23 +43,23 @@
|
|
| 43 |
"name": null,
|
| 44 |
"description": null,
|
| 45 |
"requirements": [
|
| 46 |
-
"requests",
|
| 47 |
"smolagents",
|
| 48 |
"markdownify",
|
| 49 |
-
"duckduckgo_search"
|
|
|
|
| 50 |
],
|
| 51 |
"authorized_imports": [
|
| 52 |
-
"
|
| 53 |
-
"re",
|
| 54 |
"datetime",
|
| 55 |
-
"itertools",
|
| 56 |
"time",
|
| 57 |
-
"
|
| 58 |
-
"
|
| 59 |
-
"collections",
|
| 60 |
-
"stat",
|
| 61 |
"statistics",
|
| 62 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
],
|
| 64 |
"executor_type": "local",
|
| 65 |
"executor_kwargs": {},
|
|
|
|
| 10 |
"model": {
|
| 11 |
"class": "HfApiModel",
|
| 12 |
"data": {
|
| 13 |
+
"last_input_token_count": 4607,
|
| 14 |
+
"last_output_token_count": 45,
|
| 15 |
"model_id": "Qwen/Qwen2.5-Coder-32B-Instruct",
|
| 16 |
"provider": null
|
| 17 |
}
|
|
|
|
| 43 |
"name": null,
|
| 44 |
"description": null,
|
| 45 |
"requirements": [
|
|
|
|
| 46 |
"smolagents",
|
| 47 |
"markdownify",
|
| 48 |
+
"duckduckgo_search",
|
| 49 |
+
"requests"
|
| 50 |
],
|
| 51 |
"authorized_imports": [
|
| 52 |
+
"collections",
|
|
|
|
| 53 |
"datetime",
|
|
|
|
| 54 |
"time",
|
| 55 |
+
"re",
|
| 56 |
+
"itertools",
|
|
|
|
|
|
|
| 57 |
"statistics",
|
| 58 |
+
"stat",
|
| 59 |
+
"unicodedata",
|
| 60 |
+
"queue",
|
| 61 |
+
"math",
|
| 62 |
+
"random"
|
| 63 |
],
|
| 64 |
"executor_type": "local",
|
| 65 |
"executor_kwargs": {},
|
requirements.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
requests
|
| 2 |
smolagents
|
| 3 |
markdownify
|
| 4 |
duckduckgo_search
|
|
|
|
|
|
|
|
|
| 1 |
smolagents
|
| 2 |
markdownify
|
| 3 |
duckduckgo_search
|
| 4 |
+
requests
|
tools/visit_webpage.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
-
import requests
|
| 4 |
import smolagents
|
| 5 |
-
import re
|
| 6 |
import markdownify
|
|
|
|
|
|
|
| 7 |
|
| 8 |
class VisitWebpageTool(Tool):
|
| 9 |
name = "visit_webpage"
|
|
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
|
|
|
| 3 |
import smolagents
|
|
|
|
| 4 |
import markdownify
|
| 5 |
+
import re
|
| 6 |
+
import requests
|
| 7 |
|
| 8 |
class VisitWebpageTool(Tool):
|
| 9 |
name = "visit_webpage"
|