Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ import time
|
|
| 6 |
import soundfile as sf
|
| 7 |
import io
|
| 8 |
|
| 9 |
-
def
|
| 10 |
return gr.update(visible=False)
|
| 11 |
def show_popup():
|
| 12 |
return gr.update(visible=True)
|
|
@@ -210,12 +210,15 @@ button.selected::after{
|
|
| 210 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
| 211 |
with demo:
|
| 212 |
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
|
|
|
|
|
|
|
|
|
| 219 |
|
| 220 |
gr.HTML("""
|
| 221 |
<div id="header">
|
|
|
|
| 6 |
import soundfile as sf
|
| 7 |
import io
|
| 8 |
|
| 9 |
+
def hide_notice():
|
| 10 |
return gr.update(visible=False)
|
| 11 |
def show_popup():
|
| 12 |
return gr.update(visible=True)
|
|
|
|
| 210 |
demo = gr.Blocks(css=css_content) #, fill_width=True)
|
| 211 |
with demo:
|
| 212 |
|
| 213 |
+
with gr.Column(visible=True) as message_block:
|
| 214 |
+
gr.Markdown("""
|
| 215 |
+
⚠️ **Notice**
|
| 216 |
+
|
| 217 |
+
The recordings are not saved and are automatically removed.
|
| 218 |
+
""")
|
| 219 |
+
ok_button = gr.Button("OK")
|
| 220 |
+
|
| 221 |
+
ok_button.click(fn=hide_notice, outputs=message_block)
|
| 222 |
|
| 223 |
gr.HTML("""
|
| 224 |
<div id="header">
|