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