Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import json
|
|
| 4 |
from datetime import datetime, timedelta
|
| 5 |
|
| 6 |
# You'll need to get a free API key from OpenWeatherMap
|
| 7 |
-
API_KEY = "
|
| 8 |
BASE_URL = "http://api.openweathermap.org/data/2.5"
|
| 9 |
|
| 10 |
def get_weather_data(city):
|
|
|
|
| 4 |
from datetime import datetime, timedelta
|
| 5 |
|
| 6 |
# You'll need to get a free API key from OpenWeatherMap
|
| 7 |
+
API_KEY = os.getenv("OPENWEATHER_API_KEY")
|
| 8 |
BASE_URL = "http://api.openweathermap.org/data/2.5"
|
| 9 |
|
| 10 |
def get_weather_data(city):
|