randmimc commited on
Commit
4428eed
ยท
verified ยท
1 Parent(s): 4a4ded1

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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
- .audio-icon {{
 
 
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
  ๋ธŒ๋ผ์šฐ์ €๊ฐ€ ์˜ค๋””์˜ค ํƒœ๊ทธ๋ฅผ ์ง€์›ํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.