Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -83,6 +83,20 @@ def transcribe_file(audio_upload, language):
|
|
83 |
|
84 |
|
85 |
css_content = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
.popup-overlay {
|
87 |
position: fixed;
|
88 |
top: 0;
|
@@ -210,11 +224,12 @@ button.selected::after{
|
|
210 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
211 |
with demo:
|
212 |
|
213 |
-
|
|
|
214 |
gr.Markdown("""
|
215 |
-
|
216 |
|
217 |
-
The recordings are not saved and are automatically removed.
|
218 |
""")
|
219 |
ok_button = gr.Button("OK")
|
220 |
|
|
|
83 |
|
84 |
|
85 |
css_content = """
|
86 |
+
.intro-message {
|
87 |
+
position: fixed;
|
88 |
+
top: 0; left: 0;
|
89 |
+
width: 100vw;
|
90 |
+
height: 100vh;
|
91 |
+
background: rgba(255,255,255,0.95);
|
92 |
+
display: flex;
|
93 |
+
flex-direction: column;
|
94 |
+
justify-content: center;
|
95 |
+
align-items: center;
|
96 |
+
z-index: 9999;
|
97 |
+
padding: 40px;
|
98 |
+
box-sizing: border-box;
|
99 |
+
}
|
100 |
.popup-overlay {
|
101 |
position: fixed;
|
102 |
top: 0;
|
|
|
224 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
225 |
with demo:
|
226 |
|
227 |
+
intro = gr.Column(visible=True, elem_id="intro-message")
|
228 |
+
with intro:
|
229 |
gr.Markdown("""
|
230 |
+
Welcome!
|
231 |
|
232 |
+
⚠️ The recordings are not saved and are automatically removed.
|
233 |
""")
|
234 |
ok_button = gr.Button("OK")
|
235 |
|