Spaces:
Runtime error
Runtime error
js = ""
Browse files
app.py
CHANGED
|
@@ -956,12 +956,6 @@ title_html = """
|
|
| 956 |
|
| 957 |
css = make_progress_bar_css()
|
| 958 |
js = """
|
| 959 |
-
window.addEventListener("beforeunload", function (e) {
|
| 960 |
-
var confirmationMessage = 'It looks like you have been editing something. If you leave before saving, your changes will be lost.';
|
| 961 |
-
|
| 962 |
-
(e || window.event).returnValue = confirmationMessage;
|
| 963 |
-
return confirmationMessage;
|
| 964 |
-
});
|
| 965 |
"""
|
| 966 |
block = gr.Blocks(css=css, js=js).queue()
|
| 967 |
with block:
|
|
|
|
| 956 |
|
| 957 |
css = make_progress_bar_css()
|
| 958 |
js = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 959 |
"""
|
| 960 |
block = gr.Blocks(css=css, js=js).queue()
|
| 961 |
with block:
|