Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def get_weather(location: str)-> str:
|
|
| 37 |
lon = place['lon']
|
| 38 |
lat = place['lat']
|
| 39 |
|
| 40 |
-
url = f'https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=currently,minutely,hourly,alert&appid={6969cb0fa02ea908feee8820d3a22689}'
|
| 41 |
try:
|
| 42 |
weather_status = requests.get(url)
|
| 43 |
return weather_status['daily'][0]['summary']
|
|
|
|
| 37 |
lon = place['lon']
|
| 38 |
lat = place['lat']
|
| 39 |
|
| 40 |
+
url = f'https://api.openweathermap.org/data/3.0/onecall?lat={lat}&lon={lon}&exclude=currently,minutely,hourly,alert&appid={'6969cb0fa02ea908feee8820d3a22689'}'
|
| 41 |
try:
|
| 42 |
weather_status = requests.get(url)
|
| 43 |
return weather_status['daily'][0]['summary']
|