randmimc commited on
Commit
b8436ab
ยท
verified ยท
1 Parent(s): 6b326ff

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +4 -2
src/streamlit_app.py CHANGED
@@ -45,11 +45,11 @@ 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
-
49
 
50
  # ๋ฐ์ดํ„ฐ ์ƒํƒœ ๋ฐ ์กฐ์น˜ ์ƒํ™ฉ ํ‘œ์‹œ ํ•จ์ˆ˜
51
  def display_status_and_action(text):
52
- audio_placeholder = st.empty()
53
  if text == "":
54
  st.info("๋จผ์ € ๋ฐ์ดํ„ฐ๋ฅผ ์„ ํƒํ•ด์ฃผ์„ธ์š”.")
55
  elif text == "2024-09-26":
@@ -115,3 +115,5 @@ def display_status_and_action(text):
115
 
116
  if selected_text:
117
  display_status_and_action(selected_text)
 
 
 
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":
 
115
 
116
  if selected_text:
117
  display_status_and_action(selected_text)
118
+ else:
119
+ audio_placeholder.empty() # ์„ ํƒ ํ•ด์ œ ์‹œ ์˜ค๋””์˜ค๋„ ์ œ๊ฑฐ