Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,13 @@ from Gradio_UI import GradioUI
|
|
| 28 |
@tool
|
| 29 |
def get_location_tool(ip: str): str
|
| 30 |
|
| 31 |
-
|
| 32 |
'city': response.city,
|
| 33 |
'region': response.region,
|
| 34 |
'country': response.country,
|
| 35 |
'latitude': response.latitude,
|
| 36 |
'longitude': response.longitude
|
| 37 |
-
|
| 38 |
|
| 39 |
"""This is a tool that gets the exact location of a user including city, region, country, latitude, and longitude.
|
| 40 |
Args:
|
|
|
|
| 28 |
@tool
|
| 29 |
def get_location_tool(ip: str): str
|
| 30 |
|
| 31 |
+
return {
|
| 32 |
'city': response.city,
|
| 33 |
'region': response.region,
|
| 34 |
'country': response.country,
|
| 35 |
'latitude': response.latitude,
|
| 36 |
'longitude': response.longitude
|
| 37 |
+
}
|
| 38 |
|
| 39 |
"""This is a tool that gets the exact location of a user including city, region, country, latitude, and longitude.
|
| 40 |
Args:
|