Update src/streamlit_app.py

#1
by randmimc - opened
Files changed (1) hide show
  1. src/streamlit_app.py +1 -5
src/streamlit_app.py CHANGED
@@ -45,11 +45,9 @@ st.markdown("""
45
  df = pd.read_csv("https://huggingface.co/spaces/randmimc/mobility_condition/raw/main/chat_icon/text.csv", on_bad_lines='skip')
46
 
47
  # 오디오 플레이어용 placeholder 만들기
48
- audio_placeholder = st.empty()
49
 
50
  # 데이터 상태 및 조치 상황 표시 함수
51
  def display_status_and_action(text):
52
-
53
  if text == "":
54
  st.info("먼저 데이터를 선택해주세요.")
55
  elif text == "2024-09-26":
@@ -121,9 +119,7 @@ def display_status_and_action(text):
121
  """
122
 
123
  # HTML 렌더링
124
- audio_placeholder.markdown(audio_html, unsafe_allow_html=True)
125
 
126
  if selected_text:
127
  display_status_and_action(selected_text)
128
- else:
129
- audio_placeholder.empty() # 선택 해제 시 오디오도 제거
 
45
  df = pd.read_csv("https://huggingface.co/spaces/randmimc/mobility_condition/raw/main/chat_icon/text.csv", on_bad_lines='skip')
46
 
47
  # 오디오 플레이어용 placeholder 만들기
 
48
 
49
  # 데이터 상태 및 조치 상황 표시 함수
50
  def display_status_and_action(text):
 
51
  if text == "":
52
  st.info("먼저 데이터를 선택해주세요.")
53
  elif text == "2024-09-26":
 
119
  """
120
 
121
  # HTML 렌더링
122
+ st.markdown(audio_html, unsafe_allow_html=True)
123
 
124
  if selected_text:
125
  display_status_and_action(selected_text)