SamarthPujari commited on
Commit
a6df776
·
verified ·
1 Parent(s): add1d43

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,8 +18,8 @@ def get_current_weather(place: str)-> str: #it's import to specify the return ty
18
  api_key = "Weather_Token"
19
  url = "https://api.openweathermap.org/data/2.5/weather"
20
  params = {
21
- "city": place,
22
- "api_key": api_key,
23
  "units": "metric"
24
  }
25
 
 
18
  api_key = "Weather_Token"
19
  url = "https://api.openweathermap.org/data/2.5/weather"
20
  params = {
21
+ "q": place,
22
+ "appid": api_key,
23
  "units": "metric"
24
  }
25