Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def get_weather(city:str,lat: float, lng:float)-> str:
|
|
26 |
# return "City not found. Try New York, London, or Tokyo."
|
27 |
|
28 |
# lat, lon = city_coords[city]
|
29 |
-
url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={
|
30 |
|
31 |
response = requests.get(url)
|
32 |
if response.status_code == 200:
|
|
|
26 |
# return "City not found. Try New York, London, or Tokyo."
|
27 |
|
28 |
# lat, lon = city_coords[city]
|
29 |
+
url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lng}¤t_weather=true"
|
30 |
|
31 |
response = requests.get(url)
|
32 |
if response.status_code == 200:
|