Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 |
-
|
| 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)
|
|
|
|
|
|