ZainebS commited on
Commit
7cd625d
·
verified ·
1 Parent(s): 11cfd12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ def get_weather(city:str,lat: float, lng:float)-> str:
26
  # return "City not found. Try New York, London, or Tokyo."
27
 
28
  # lat, lon = city_coords[city]
29
- url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&current_weather=true"
30
 
31
  response = requests.get(url)
32
  if response.status_code == 200:
 
26
  # return "City not found. Try New York, London, or Tokyo."
27
 
28
  # lat, lon = city_coords[city]
29
+ url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lng}&current_weather=true"
30
 
31
  response = requests.get(url)
32
  if response.status_code == 200: