Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +22 -5
src/streamlit_app.py
CHANGED
|
@@ -70,17 +70,34 @@ def display_status_and_action(text):
|
|
| 70 |
# HTML ์คํ์ผ ๋ฐ ์ค๋์ค ์ถ๋ ฅ
|
| 71 |
audio_html = f"""
|
| 72 |
<style>
|
| 73 |
-
.audio-container {
|
| 74 |
display: flex;
|
| 75 |
align-items: center;
|
| 76 |
gap: 10px;
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
| 79 |
font-size: 30px;
|
| 80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 81 |
</style>
|
|
|
|
| 82 |
<div class="audio-container">
|
| 83 |
-
<div class="audio-icon">๐</div>
|
| 84 |
<audio controls>
|
| 85 |
<source src="data:audio/mp3;base64,{audio_base64}" type="audio/mp3">
|
| 86 |
๋ธ๋ผ์ฐ์ ๊ฐ ์ค๋์ค ํ๊ทธ๋ฅผ ์ง์ํ์ง ์์ต๋๋ค.
|
|
|
|
| 70 |
# HTML ์คํ์ผ ๋ฐ ์ค๋์ค ์ถ๋ ฅ
|
| 71 |
audio_html = f"""
|
| 72 |
<style>
|
| 73 |
+
.audio-container {
|
| 74 |
display: flex;
|
| 75 |
align-items: center;
|
| 76 |
gap: 10px;
|
| 77 |
+
justify-content: flex-end; /* ์ค๋ฅธ์ชฝ ์ ๋ ฌ */
|
| 78 |
+
margin-top: 10px;
|
| 79 |
+
}
|
| 80 |
+
.audio-icon {
|
| 81 |
font-size: 30px;
|
| 82 |
+
cursor: pointer;
|
| 83 |
+
}
|
| 84 |
+
.audio-icon[title]:hover::after {
|
| 85 |
+
content: attr(title);
|
| 86 |
+
position: absolute;
|
| 87 |
+
background: #333;
|
| 88 |
+
color: #fff;
|
| 89 |
+
padding: 5px 8px;
|
| 90 |
+
border-radius: 5px;
|
| 91 |
+
white-space: nowrap;
|
| 92 |
+
font-size: 12px;
|
| 93 |
+
top: -35px;
|
| 94 |
+
right: 0;
|
| 95 |
+
z-index: 999;
|
| 96 |
+
}
|
| 97 |
</style>
|
| 98 |
+
|
| 99 |
<div class="audio-container">
|
| 100 |
+
<div class="audio-icon" title="์ ๋ด์ฉ์ ์์ฑ์ผ๋ก ๋ฃ๊ธฐ">๐</div>
|
| 101 |
<audio controls>
|
| 102 |
<source src="data:audio/mp3;base64,{audio_base64}" type="audio/mp3">
|
| 103 |
๋ธ๋ผ์ฐ์ ๊ฐ ์ค๋์ค ํ๊ทธ๋ฅผ ์ง์ํ์ง ์์ต๋๋ค.
|