Space

RV2 Humanize

rv2-spaces/rv2-spaces-gradio

Crash on purpose

rv2-spaces committed on October 20, 2026

1e4d73c6c44e268138a7eb9efd7f711bd8c99c9dParent 5c22e28Browse files

1 file changed+3 -5

app.py

Modified+3 -5
Lines 1 to 6 become lines 1 to 4
@@ -1,6 +1,4 @@
1Removed: import os, gradio as gr, humanize
1Added: import os, gradio as gr, humanize, time
22print("startup: GREETING=%r; secret set=%s" % (os.environ.get("GREETING"), bool(os.environ.get("RV2_SECRET"))), flush=True)
3Removed: def f(n):
4Removed: n=int(n)
5Removed: return f"{humanize.intword(n)} / {humanize.naturalsize(n)} / {humanize.ordinal(n)}"
6Removed: gr.Interface(fn=f, inputs=gr.Number(label="n"), outputs="text", title="RV2 Humanize").launch()
3Added: time.sleep(5)
4Added: raise RuntimeError("rv2 deliberate crash after startup")