Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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']
|
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."
|