Spaces:
Sleeping
Sleeping
PandaArtStation
commited on
Commit
•
afdefaf
1
Parent(s):
d49c3dd
Update main.py
Browse files
main.py
CHANGED
@@ -6,7 +6,7 @@ os.envirion.get("key")
|
|
6 |
app = Flask(__name__)
|
7 |
|
8 |
WEATHER_API_URL = "http://api.openweathermap.org/data/2.5/weather"
|
9 |
-
API_KEY =
|
10 |
|
11 |
@app.route('/weather', methods=['GET'])
|
12 |
def get_weather():
|
|
|
6 |
app = Flask(__name__)
|
7 |
|
8 |
WEATHER_API_URL = "http://api.openweathermap.org/data/2.5/weather"
|
9 |
+
API_KEY = os.getenv('OPENWEATHER_API_KEY')
|
10 |
|
11 |
@app.route('/weather', methods=['GET'])
|
12 |
def get_weather():
|