imorcillo commited on
Commit
1ad2347
·
verified ·
1 Parent(s): fc42ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -275,20 +275,21 @@ with demo:
275
  )
276
 
277
  ###############################
278
- popup_modal = gr.Column(visible=False, elem_id="popup-overlay")
279
- with popup_modal:
280
- with gr.Column(elem_id="popup-box"):
281
  gr.Markdown("""
282
  ### ℹ️ Notice
283
-
284
  Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
285
  No se guardan las grabaciones y se eliminan automáticamente.
286
  The recordings are not saved and are automatically removed.
287
  """)
288
  ok_btn = gr.Button("OK", elem_id="popup-button")
289
-
290
- ok_btn.click(fn=hide_popup, outputs=popup_modal)
291
- demo.load(fn=show_popup, outputs=popup_modal)
 
292
  ###################
293
 
294
  gr.HTML("""
 
275
  )
276
 
277
  ###############################
278
+ popup = gr.Column(visible=False, elem_id="popup-modal")
279
+ with popup:
280
+ with gr.Column(elem_id="popup-content"):
281
  gr.Markdown("""
282
  ### ℹ️ Notice
283
+
284
  Grabaketak ez dira gordetzen eta automatikoki ezabatzen dira.
285
  No se guardan las grabaciones y se eliminan automáticamente.
286
  The recordings are not saved and are automatically removed.
287
  """)
288
  ok_btn = gr.Button("OK", elem_id="popup-button")
289
+ ok_btn.click(fn=hide_popup, outputs=popup)
290
+
291
+ # Show on load
292
+ demo.load(fn=show_popup, outputs=popup)
293
  ###################
294
 
295
  gr.HTML("""