clwuyang commited on
Commit
9bd1407
·
verified ·
1 Parent(s): bff6769

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: