Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,13 +50,13 @@ def get_location_tool(ip: str): str
|
|
| 50 |
|
| 51 |
Returns: ip address, city, region, country, and geo coordinates
|
| 52 |
"""
|
| 53 |
-
|
| 54 |
'city': response.city,
|
| 55 |
'region': response.region,
|
| 56 |
'country': response.country,
|
| 57 |
'latitude': response.latitude,
|
| 58 |
'longitude': response.longitude
|
| 59 |
-
}
|
| 60 |
response = DbIpCity.get(ip, api_key='free')
|
| 61 |
|
| 62 |
|
|
|
|
| 50 |
|
| 51 |
Returns: ip address, city, region, country, and geo coordinates
|
| 52 |
"""
|
| 53 |
+
return {
|
| 54 |
'city': response.city,
|
| 55 |
'region': response.region,
|
| 56 |
'country': response.country,
|
| 57 |
'latitude': response.latitude,
|
| 58 |
'longitude': response.longitude
|
| 59 |
+
}
|
| 60 |
response = DbIpCity.get(ip, api_key='free')
|
| 61 |
|
| 62 |
|