Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,9 @@ def get_weather(latitude: float, longitude: float) -> str:
|
|
| 27 |
"""
|
| 28 |
try:
|
| 29 |
url = f"https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}¤t_weather=true"
|
|
|
|
| 30 |
response = requests.get(url)
|
|
|
|
| 31 |
weather_data = response.json()
|
| 32 |
return json.dumps(weather_data)
|
| 33 |
except Exception as e:
|
|
|
|
| 27 |
"""
|
| 28 |
try:
|
| 29 |
url = f"https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}¤t_weather=true"
|
| 30 |
+
print(url)
|
| 31 |
response = requests.get(url)
|
| 32 |
+
print(response)
|
| 33 |
weather_data = response.json()
|
| 34 |
return json.dumps(weather_data)
|
| 35 |
except Exception as e:
|