Spaces:
Sleeping
Sleeping
Update app.py
Browse filesIdentation glitch
app.py
CHANGED
@@ -28,7 +28,7 @@ def get_temperature(location: str, temp_scale: str = "celsius") -> tuple[float,
|
|
28 |
Returns:
|
29 |
tuple: (temperature value as float, unit as string 'C' or 'F', qualitative description)
|
30 |
"""
|
31 |
-
|
32 |
"""Get qualitative description based on Celsius temperature"""
|
33 |
if temp_c <= 0: return "freezing"
|
34 |
if temp_c <= 10: return "cold"
|
|
|
28 |
Returns:
|
29 |
tuple: (temperature value as float, unit as string 'C' or 'F', qualitative description)
|
30 |
"""
|
31 |
+
def get_description(temp_c: float) -> str:
|
32 |
"""Get qualitative description based on Celsius temperature"""
|
33 |
if temp_c <= 0: return "freezing"
|
34 |
if temp_c <= 10: return "cold"
|