Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -31,6 +31,7 @@ def get_weather(latitude: float, longitude: float) -> str:
|
|
| 31 |
response = requests.get(url)
|
| 32 |
print(response)
|
| 33 |
weather_data = response.json()
|
|
|
|
| 34 |
return json.dumps(weather_data)
|
| 35 |
except Exception as e:
|
| 36 |
return f"Error fetching weather"
|
|
|
|
| 31 |
response = requests.get(url)
|
| 32 |
print(response)
|
| 33 |
weather_data = response.json()
|
| 34 |
+
print(weather_data)
|
| 35 |
return json.dumps(weather_data)
|
| 36 |
except Exception as e:
|
| 37 |
return f"Error fetching weather"
|