Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +5 -1
src/streamlit_app.py
CHANGED
|
@@ -44,8 +44,12 @@ st.markdown("""
|
|
| 44 |
""", unsafe_allow_html=True)
|
| 45 |
df = pd.read_csv("https://huggingface.co/spaces/randmimc/mobility_condition/raw/main/chat_icon/text.csv", on_bad_lines='skip')
|
| 46 |
|
|
|
|
|
|
|
|
|
|
| 47 |
# 데이터 상태 및 조치 상황 표시 함수
|
| 48 |
def display_status_and_action(text):
|
|
|
|
| 49 |
if text == "":
|
| 50 |
st.info("먼저 데이터를 선택해주세요.")
|
| 51 |
elif text == "2024-09-26":
|
|
@@ -133,7 +137,7 @@ def display_status_and_action(text):
|
|
| 133 |
"""
|
| 134 |
|
| 135 |
# HTML 렌더링
|
| 136 |
-
|
| 137 |
|
| 138 |
if selected_text:
|
| 139 |
display_status_and_action(selected_text)
|
|
|
|
| 44 |
""", unsafe_allow_html=True)
|
| 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":
|
|
|
|
| 137 |
"""
|
| 138 |
|
| 139 |
# HTML 렌더링
|
| 140 |
+
audio_placeholder.markdown(audio_html, unsafe_allow_html=True)
|
| 141 |
|
| 142 |
if selected_text:
|
| 143 |
display_status_and_action(selected_text)
|