Space

rv-clients/rv-clients-dupspace

Add app

rv-spaces committed on October 20, 2026

46c440c248ca565a6f3ca64a7a4a41704d39cd84Parent 6e4c1aaBrowse files

1 file changed+10 -0

app.py

Added+10 -0
Lines 0 to 0 become lines 1 to 10
@@ -0,0 +1,10 @@
1Added: import gradio as gr
2Added: import humanize
3Added:
4Added: def describe(n):
5Added: n = int(n or 0)
6Added: return f"{humanize.intword(n)} / {humanize.naturalsize(n)} / {humanize.ordinal(n)}"
7Added:
8Added: demo = gr.Interface(describe, gr.Number(label="A number", value=1234567), gr.Textbox(label="Humanized"),
9Added: title="rv-spaces humanize demo", api_name="predict")
10Added: demo.launch()