Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_weather(city: str) -> str:
|
|
19 |
Returns:
|
20 |
str: A string containing the weather information or an error message.
|
21 |
"""
|
22 |
-
api_key = os.getenv('
|
23 |
if not api_key:
|
24 |
return "Error: API Key not found in environment variables."
|
25 |
|
|
|
19 |
Returns:
|
20 |
str: A string containing the weather information or an error message.
|
21 |
"""
|
22 |
+
api_key = os.getenv('WEATHER_API_KEY')
|
23 |
if not api_key:
|
24 |
return "Error: API Key not found in environment variables."
|
25 |
|