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