ZainebS commited on
Commit
4bd79e8
·
verified ·
1 Parent(s): 00fc27d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def get_weather(city:str,lat: float, lng:float)-> str:
41
  if response.status_code == 200:
42
  data = response.json()
43
  weather = data["current_weather"]
44
- return f"The weather in {city} is {weather['temperature']}°C - weather_description[{weather['weathercode']}]."
45
  else:
46
  return "Error fetching weather data."
47
 
 
41
  if response.status_code == 200:
42
  data = response.json()
43
  weather = data["current_weather"]
44
+ return f"The weather in {city} is {weather['temperature']}°C - {weather_description[{weather['weathercode']}]}."
45
  else:
46
  return "Error fetching weather data."
47