subham73 commited on
Commit
b5315fb
·
verified ·
1 Parent(s): ceee732

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ def current_weather(loction: str)-> str:
17
  """
18
 
19
  key = "4da8241f3e302b39314e95cf04d4552e"
20
- url = f"https://api.weatherstack.com/current?access_key={key
21
  response = requests.get(url, params=query)
22
  data = response.json()
23
  return f"Weather of {location} is {data['current']['weather_descriptions']} with the temperature {data['current']['temperature']}"
 
17
  """
18
 
19
  key = "4da8241f3e302b39314e95cf04d4552e"
20
+ url = f"https://api.weatherstack.com/current?access_key={key}"
21
  response = requests.get(url, params=query)
22
  data = response.json()
23
  return f"Weather of {location} is {data['current']['weather_descriptions']} with the temperature {data['current']['temperature']}"