Space

UI Spaces Echo

ui-spaces/ui-spaces-echo-copy

Crash on purpose

ui-spaces committed on October 21, 2026

648ab50284205a7b57471747afca362f727565e1Parent 9c4ccf3Browse files

1 file changed+4 -13

app.py

Modified+4 -13
Lines 1 to 13 become lines 1 to 4
@@ -1,13 +1,4 @@
1Removed: import gradio as gr
2Removed: import humanize
3Removed:
4Removed:
5Removed: def echo(text):
6Removed: n = len(text or "")
7Removed: return f"{text} ({n} characters, {humanize.apnumber(n)})"
8Removed:
9Removed:
10Removed: demo = gr.Interface(fn=echo, inputs=gr.Textbox(label="Text"), outputs=gr.Textbox(label="Echo"), title="UI Spaces Echo")
11Removed:
12Removed: if __name__ == "__main__":
13Removed: demo.launch()
1Added: import sys
2Added: print("ui-spaces crash test: starting up", flush=True)
3Added: print("ui-spaces crash test: about to fail on purpose", file=sys.stderr, flush=True)
4Added: raise RuntimeError("ui-spaces deliberate crash for the runtime error test")