imorcillo commited on
Commit
d2d7dc7
·
verified ·
1 Parent(s): a247d56

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -7
app.py CHANGED
@@ -6,7 +6,7 @@ import time
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)
@@ -210,12 +210,15 @@ button.selected::after{
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">
 
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">