randmimc commited on
Commit
6eac4ee
ยท
verified ยท
1 Parent(s): b8436ab

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. 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-container {{
 
 
 
 
 
 
 
 
89
  display: flex;
90
  align-items: center;
91
  gap: 10px;
92
- margin-top: 20px;
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 ๋ Œ๋”๋ง