Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,7 @@ def get_city_weather(city:str)-> str: #it's import to specify the return type
|
|
| 19 |
weather_API = os.getenv("weather_API") # Ensure this is set
|
| 20 |
if not weather_API:
|
| 21 |
return "Error: Weather API key is missing."
|
|
|
|
| 22 |
|
| 23 |
api_url = f"https://api.weatherapi.com/v1/current.json?key={weather_API}&q={city}&aqi=no"
|
| 24 |
try:
|
|
|
|
| 19 |
weather_API = os.getenv("weather_API") # Ensure this is set
|
| 20 |
if not weather_API:
|
| 21 |
return "Error: Weather API key is missing."
|
| 22 |
+
print(os.getenv('weather_API'))
|
| 23 |
|
| 24 |
api_url = f"https://api.weatherapi.com/v1/current.json?key={weather_API}&q={city}&aqi=no"
|
| 25 |
try:
|