Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files87 unmodified lines88899091929394959697989910087 unmodified linesst.markdown(audio_html, unsafe_allow_html=True)# ์๋น์ค ์คํselected_text = st.selectbox("๋ฐ์ดํฐ๋ฅผ ์ ํํ์ธ์", options)if selected_text == "":none_temp(placeholder)elif selected_text == "2024-09-26":normal(placeholder, df, "ECU_DPFSoot")else:audio_base64 = tts_engine(warning+" "+text_input)anormal(placeholder, df, "ECU_DPFSoot", warning, text_input, audio_base64)87 unmodified lines88899091929394959697989910010110210310410510610787 unmodified linesst.markdown(audio_html, unsafe_allow_html=True)# ์๋น์ค ์คํ# 1. session_state ์ด๊ธฐํ (์ฑ์ด ์ฒ์ ์คํ๋ ๋๋ง ์๋)if 'selection' not in st.session_state:st.session_state.selection = ""st.selectbox("์ง๋จํ ๋ฐ์ดํฐ๋ฅผ ์ ํํ์ธ์:",options=["", "2024-08-24", "2024-09-26"],key='selection' # ์ด key๊ฐ st.session_state.selection๊ณผ ์ฐ๊ฒฐ๋ฉ๋๋ค.)if st.session_state.selection == "":none_temp(placeholder)elif st.session_state.selection == "2024-09-26":normal(placeholder, df, "ECU_DPFSoot")else: # "2024-08-24"audio_base64 = tts_engine(warning+" "+text_input)anormal(placeholder, df, "ECU_DPFSoot", warning, text_input, audio_base64)
src/streamlit_app.py+11-4