Space

RV2 Humanize

rv2-spaces/rv2-spaces-gradio-copy

Add app

rv2-spaces committed on October 20, 2026

5c22e289c30774bad8cacee9f3395cd30aff0ac9Parent cc1d14bBrowse files

1 file changed+6 -0

app.py

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