rchrdgwr commited on
Commit
020fbb2
·
verified ·
1 Parent(s): 414335f
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def get_population(country:str)-> str: #it's import to specify the return type
49
  def get_weather(city:str) -> str:
50
  API_KEY = os.getenv("WAPI")
51
  CITY = "New York"
52
- URL = f"http://api.weatherapi.com/v1/current.json?key={API_KEY}&q={CITY}&aqi=no
53
  response = requests.get(URL)
54
  if response.status_code == 200:
55
  data = response.json()
 
49
  def get_weather(city:str) -> str:
50
  API_KEY = os.getenv("WAPI")
51
  CITY = "New York"
52
+ URL = f"http://api.weatherapi.com/v1/current.json?key={API_KEY}&q={CITY}&aqi=no"
53
  response = requests.get(URL)
54
  if response.status_code == 200:
55
  data = response.json()