randmimc commited on
Commit
31548fa
ยท
verified ยท
1 Parent(s): 5b9880a

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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=options,
 
69
  on_change=reset_st
70
  )
71
 
72
- st.write(st.session_state.selection)
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