Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -274,7 +274,7 @@ def main():
|
|
| 274 |
tomorrow_morning_temps = tomorrow_temp_data[tomorrow_temp_data['hour'].between(6, 11)]['fcstValue'].astype(float)
|
| 275 |
tomorrow_morning_temp = tomorrow_temp_data[tomorrow_temp_data['hour'] == 6]['fcstValue'].iloc[0] if not tomorrow_temp_data[tomorrow_temp_data['hour'] == 6].empty else 0
|
| 276 |
|
| 277 |
-
st.markdown(f"""<span style='font-size: 3.5em'>์ค์๊ฐ ๋ ์จ ๋์๋ณด๋ <span style='font-size: 0.7em'>(ํ์ฌ์จ๋: <b><span style='color: {'red' if current_temp >= 0 else 'blue'}'>{current_temp:.1f}</span></b>๋, ๋ด์ผ ์์นจ 6์ ์จ๋: <b><span style='color: {'red' if float(tomorrow_morning_temp) >= 0 else 'blue'}'>{float(tomorrow_morning_temp):.1f}</span></b>๋)</span></span>""", unsafe_allow_html=True)
|
| 278 |
|
| 279 |
# ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ
|
| 280 |
fig, ax = plt.subplots(figsize=(25, 10))
|
|
|
|
| 274 |
tomorrow_morning_temps = tomorrow_temp_data[tomorrow_temp_data['hour'].between(6, 11)]['fcstValue'].astype(float)
|
| 275 |
tomorrow_morning_temp = tomorrow_temp_data[tomorrow_temp_data['hour'] == 6]['fcstValue'].iloc[0] if not tomorrow_temp_data[tomorrow_temp_data['hour'] == 6].empty else 0
|
| 276 |
|
| 277 |
+
st.markdown(f"""<span style='font-size: 3.5em'><b>์ค์๊ฐ ๋ ์จ ๋์๋ณด๋</b> <span style='font-size: 0.7em'>(ํ์ฌ์จ๋: <b><span style='color: {'red' if current_temp >= 0 else 'blue'}'>{current_temp:.1f}</span></b>๋, ๋ด์ผ ์์นจ 6์ ์จ๋: <b><span style='color: {'red' if float(tomorrow_morning_temp) >= 0 else 'blue'}'>{float(tomorrow_morning_temp):.1f}</span></b>๋)</span></span>""", unsafe_allow_html=True)
|
| 278 |
|
| 279 |
# ๊ทธ๋ํ ๊ทธ๋ฆฌ๊ธฐ
|
| 280 |
fig, ax = plt.subplots(figsize=(25, 10))
|