Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +23 -14
src/streamlit_app.py
CHANGED
|
@@ -85,29 +85,38 @@ def display_status_and_action(text):
|
|
| 85 |
# HTML ์คํ์ผ ๋ฐ ์ค๋์ค ์ถ๋ ฅ
|
| 86 |
audio_html = f"""
|
| 87 |
<style>
|
| 88 |
-
.audio-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
display: flex;
|
| 90 |
align-items: center;
|
| 91 |
gap: 10px;
|
| 92 |
-
|
| 93 |
-
padding: 10px;
|
| 94 |
-
background-color: #f9f9f9;
|
| 95 |
-
border-radius: 10px;
|
| 96 |
-
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
| 97 |
}}
|
| 98 |
.audio-icon {{
|
| 99 |
font-size: 24px;
|
| 100 |
cursor: pointer;
|
| 101 |
}}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 102 |
</style>
|
| 103 |
-
|
| 104 |
-
<div class="audio-container">
|
| 105 |
-
<div class="audio-icon" title="์ ๋ด์ฉ์ ์์ฑ์ผ๋ก ๋ฃ๊ธฐ">๐</div>
|
| 106 |
-
<audio controls>
|
| 107 |
-
<source src="data:audio/mp3;base64,{audio_base64}" type="audio/mp3">
|
| 108 |
-
๋ธ๋ผ์ฐ์ ๊ฐ ์ค๋์ค ํ๊ทธ๋ฅผ ์ง์ํ์ง ์์ต๋๋ค.
|
| 109 |
-
</audio>
|
| 110 |
-
</div>
|
| 111 |
"""
|
| 112 |
|
| 113 |
# HTML ๋ ๋๋ง
|
|
|
|
| 85 |
# HTML ์คํ์ผ ๋ฐ ์ค๋์ค ์ถ๋ ฅ
|
| 86 |
audio_html = f"""
|
| 87 |
<style>
|
| 88 |
+
.audio-fixed-bottom {{
|
| 89 |
+
position: fixed;
|
| 90 |
+
bottom: 0;
|
| 91 |
+
right: 20px;
|
| 92 |
+
width: calc(100% - 40px);
|
| 93 |
+
background-color: #f0f0f0;
|
| 94 |
+
padding: 10px 20px;
|
| 95 |
+
box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
|
| 96 |
+
z-index: 9999;
|
| 97 |
display: flex;
|
| 98 |
align-items: center;
|
| 99 |
gap: 10px;
|
| 100 |
+
border-radius: 10px 10px 0 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
}}
|
| 102 |
.audio-icon {{
|
| 103 |
font-size: 24px;
|
| 104 |
cursor: pointer;
|
| 105 |
}}
|
| 106 |
+
.audio-icon[title]:hover::after {{
|
| 107 |
+
content: attr(title);
|
| 108 |
+
position: absolute;
|
| 109 |
+
background: #333;
|
| 110 |
+
color: #fff;
|
| 111 |
+
padding: 5px 8px;
|
| 112 |
+
border-radius: 5px;
|
| 113 |
+
white-space: nowrap;
|
| 114 |
+
font-size: 12px;
|
| 115 |
+
top: -35px;
|
| 116 |
+
right: 0;
|
| 117 |
+
z-index: 10000;
|
| 118 |
+
}}
|
| 119 |
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 120 |
"""
|
| 121 |
|
| 122 |
# HTML ๋ ๋๋ง
|