Spaces:
Runtime error
Runtime error
Chintan Donda
commited on
Commit
•
2b3239a
1
Parent(s):
bf2caaf
Convert temperature from Ferenheit to Celcius
Browse files- src/weather.py +1 -1
src/weather.py
CHANGED
@@ -96,7 +96,7 @@ class WEATHER:
|
|
96 |
try:
|
97 |
temp = int(temp)
|
98 |
celcius = int((temp - 32) * (5/9))
|
99 |
-
temperature = celcius
|
100 |
except Exception as e:
|
101 |
logger.error(f'Cannot convert temperature from Ferenheit to Celcius!')
|
102 |
pass
|
|
|
96 |
try:
|
97 |
temp = int(temp)
|
98 |
celcius = int((temp - 32) * (5/9))
|
99 |
+
temperature = str(celcius) + '°C'
|
100 |
except Exception as e:
|
101 |
logger.error(f'Cannot convert temperature from Ferenheit to Celcius!')
|
102 |
pass
|