Space
RV2 Humanize
rv2-spaces/rv2-spaces-gradio
Add app
rv2-spaces committed on October 20, 2026
5c22e289c30774bad8cacee9f3395cd30aff0ac9Parent cc1d14bBrowse files
1 file changed+6 -0
app.py
Added+6 -0
app.py
Added+6 -0
| @@ -0,0 +1,6 @@ | |||
| 1 | Added: import os, gradio as gr, humanize | ||
| 2 | Added: print("startup: GREETING=%r; secret set=%s" % (os.environ.get("GREETING"), bool(os.environ.get("RV2_SECRET"))), flush=True) | ||
| 3 | Added: def f(n): | ||
| 4 | Added: n=int(n) | ||
| 5 | Added: return f"{humanize.intword(n)} / {humanize.naturalsize(n)} / {humanize.ordinal(n)}" | ||
| 6 | Added: gr.Interface(fn=f, inputs=gr.Number(label="n"), outputs="text", title="RV2 Humanize").launch() | ||