Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ def fahrenheit_to_celsius(temperature:str)-> str: #it's import to specify the re
|
|
| 16 |
Args:
|
| 17 |
temperature: The current temperature.
|
| 18 |
"""
|
| 19 |
-
is_fahrenheit = temperature.split("°F")
|
| 20 |
if is_fahrenheit == "°F":
|
| 21 |
temperature = (temperature - 32) * 5/9
|
| 22 |
|
|
|
|
| 16 |
Args:
|
| 17 |
temperature: The current temperature.
|
| 18 |
"""
|
| 19 |
+
is_fahrenheit = temperature.split("°F")[0]
|
| 20 |
if is_fahrenheit == "°F":
|
| 21 |
temperature = (temperature - 32) * 5/9
|
| 22 |
|