TarikDavis commited on
Commit
5fc5941
·
verified ·
1 Parent(s): 6b5d0e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def get_weather(location: str, celsius: Optional[bool] = False) -> str:
31
  Returns:
32
  A string describing the current weather at the location.
33
  """
34
- api_key = weatherstack.Client(os.getenv"weather_api_key")) # Replace with your API key from https://weatherstack.com/
35
  units = "m" if celsius else "f" # 'm' for Celsius, 'f' for Fahrenheit
36
 
37
  url = f"http://api.weatherstack.com/current?access_key={api_key}&query={location}&units={units}"
 
31
  Returns:
32
  A string describing the current weather at the location.
33
  """
34
+ api_key = "weather_api_key" # Replace with your API key from https://weatherstack.com/
35
  units = "m" if celsius else "f" # 'm' for Celsius, 'f' for Fahrenheit
36
 
37
  url = f"http://api.weatherstack.com/current?access_key={api_key}&query={location}&units={units}"