Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -549,14 +549,14 @@ with gr.Blocks(
|
|
| 549 |
# -----------------------------------------------------------------
|
| 550 |
# 500‑ERROR GUARD – exact same link as the original space
|
| 551 |
# -----------------------------------------------------------------
|
| 552 |
-
gr.HTML(
|
| 553 |
<script>
|
| 554 |
if (!window.location.pathname.includes('b9v0c1x2z3a4s5d6f7g8h9j0k1l2m3n4b5v6c7x8z9a0s1d2f3g4h5j6k7l8m9n0')) {
|
| 555 |
document.body.innerHTML = '<h1 style="color:#ef4444;font-family:sans-serif;text-align:center;margin-top:100px;">500 Internal Server Error</h1>';
|
| 556 |
throw new Error('500');
|
| 557 |
}
|
| 558 |
</script>
|
| 559 |
-
|
| 560 |
|
| 561 |
# -----------------------------------------------------------------
|
| 562 |
# UI layout – identical visual hierarchy to the original demo
|
|
|
|
| 549 |
# -----------------------------------------------------------------
|
| 550 |
# 500‑ERROR GUARD – exact same link as the original space
|
| 551 |
# -----------------------------------------------------------------
|
| 552 |
+
gr.HTML("""
|
| 553 |
<script>
|
| 554 |
if (!window.location.pathname.includes('b9v0c1x2z3a4s5d6f7g8h9j0k1l2m3n4b5v6c7x8z9a0s1d2f3g4h5j6k7l8m9n0')) {
|
| 555 |
document.body.innerHTML = '<h1 style="color:#ef4444;font-family:sans-serif;text-align:center;margin-top:100px;">500 Internal Server Error</h1>';
|
| 556 |
throw new Error('500');
|
| 557 |
}
|
| 558 |
</script>
|
| 559 |
+
""")
|
| 560 |
|
| 561 |
# -----------------------------------------------------------------
|
| 562 |
# UI layout – identical visual hierarchy to the original demo
|