Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
|
@@ -65,17 +65,21 @@ if 'selection' not in st.session_state:
|
|
| 65 |
|
| 66 |
st.selectbox(
|
| 67 |
"์ง๋จํ ๋ฐ์ดํฐ๋ฅผ ์ ํํ์ธ์:",
|
| 68 |
-
options
|
|
|
|
| 69 |
on_change=reset_st
|
| 70 |
)
|
| 71 |
|
| 72 |
-
|
| 73 |
|
| 74 |
|
| 75 |
if st.session_state.selection == "":
|
|
|
|
| 76 |
none_temp()
|
| 77 |
elif st.session_state.selection == "2024-09-26":
|
|
|
|
| 78 |
normal(df, "ECU_DPFSoot")
|
| 79 |
else:
|
|
|
|
| 80 |
anormal(df, "ECU_DPFSoot", warning, text_input)
|
| 81 |
|
|
|
|
| 65 |
|
| 66 |
st.selectbox(
|
| 67 |
"์ง๋จํ ๋ฐ์ดํฐ๋ฅผ ์ ํํ์ธ์:",
|
| 68 |
+
options,
|
| 69 |
+
key="select_option",
|
| 70 |
on_change=reset_st
|
| 71 |
)
|
| 72 |
|
| 73 |
+
|
| 74 |
|
| 75 |
|
| 76 |
if st.session_state.selection == "":
|
| 77 |
+
st.write(st.session_state.selection)
|
| 78 |
none_temp()
|
| 79 |
elif st.session_state.selection == "2024-09-26":
|
| 80 |
+
st.write(st.session_state.selection)
|
| 81 |
normal(df, "ECU_DPFSoot")
|
| 82 |
else:
|
| 83 |
+
st.write(st.session_state.selection)
|
| 84 |
anormal(df, "ECU_DPFSoot", warning, text_input)
|
| 85 |
|