Spaces:
Sleeping
Sleeping
Upload tool
Browse files- requirements.txt +1 -1
- tool.py +2 -2
requirements.txt
CHANGED
|
@@ -1,2 +1,2 @@
|
|
| 1 |
-
aiohttp
|
| 2 |
smolagents
|
|
|
|
|
|
|
|
|
| 1 |
smolagents
|
| 2 |
+
aiohttp
|
tool.py
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
| 3 |
-
import aiohttp
|
| 4 |
-
import json
|
| 5 |
import asyncio
|
|
|
|
| 6 |
import logging
|
|
|
|
| 7 |
|
| 8 |
class UserLocationTool(Tool):
|
| 9 |
name = "get_user_location"
|
|
|
|
| 1 |
from typing import Any, Optional
|
| 2 |
from smolagents.tools import Tool
|
|
|
|
|
|
|
| 3 |
import asyncio
|
| 4 |
+
import json
|
| 5 |
import logging
|
| 6 |
+
import aiohttp
|
| 7 |
|
| 8 |
class UserLocationTool(Tool):
|
| 9 |
name = "get_user_location"
|