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