randmimc commited on
Commit
71a9f95
ยท
verified ยท
1 Parent(s): 169bc78

Update src/streamlit_app.py

Browse files
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)