Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -275,20 +275,21 @@ with demo:
|
|
275 |
)
|
276 |
|
277 |
###############################
|
278 |
-
|
279 |
-
with
|
280 |
-
with gr.Column(elem_id="popup-
|
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 |
-
|
291 |
-
|
|
|
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("""
|