Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def my_custom_tool(arg1:str)-> str: #it's import to specify the return type
|
|
| 28 |
data=data)
|
| 29 |
|
| 30 |
with urllib.request.urlopen(req, timeout=10) as resp:
|
| 31 |
-
|
| 32 |
|
| 33 |
|
| 34 |
@tool
|
|
|
|
| 28 |
data=data)
|
| 29 |
|
| 30 |
with urllib.request.urlopen(req, timeout=10) as resp:
|
| 31 |
+
return (json.load(resp))
|
| 32 |
|
| 33 |
|
| 34 |
@tool
|