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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
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.Info("Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.")
 
 
 
 
 
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">