ZainebS commited on
Commit
f7a06cc
·
verified ·
1 Parent(s): 4656d2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -44,7 +44,7 @@ def get_weather(city:str,lat: float, lng:float)-> str:
44
  weather = data["current_weather"]
45
  weather_units = data["current_weather_units"]
46
  description = weather_descriptions[weather['weathercode']]
47
- windspeed = weather['windspeed'] + weather_units['windspeed']
48
  return f"The weather in {city} is {weather['temperature']}°C - {description} - {windspeed}."
49
  else:
50
  return "Error fetching weather data."
 
44
  weather = data["current_weather"]
45
  weather_units = data["current_weather_units"]
46
  description = weather_descriptions[weather['weathercode']]
47
+ windspeed = f"{weather['windspeed']} {weather_units['windspeed']}"
48
  return f"The weather in {city} is {weather['temperature']}°C - {description} - {windspeed}."
49
  else:
50
  return "Error fetching weather data."