Name: Paar (founder, 16 Nov); repo renamed from mt-draft
Browse files123413 unmodified lines1819202122232425262752 unmodified lines8081828384858640 unmodified lines127128129130131132133"""Draft demo Space: twelve small English-to-X translators (16 Nov 2026; four on 14 Nov), 17.3M parameters each,run as CTranslate2 int8 on the Space's CPU, greedy, one sentence at a time, exactly as in the model cards' quick start.The model folders are copies inside this Space, so restarts never fetch from the model repos (no inflated downloadcounts); each run is counted once at mcp.udgamlabs.com/count (model, language, channel, outcome; never the text).13 unmodified linesfrom gradio_theme import CSS, HEAD, footer, header, themeHERE = os.path.dirname(os.path.abspath(__file__))NAME = "Draft"COUNT_URL = os.environ.get("UDGAM_COUNT_URL", "https://mcp.udgamlabs.com/count")COUNT_MODEL = os.environ.get("UDGAM_COUNT_MODEL", NAME.lower())REPO = os.environ.get("UDGAM_REPO_PREFIX", "udgamlabs/mt-draft-en")LANGS = {"Hindi": "hi", "Bengali": "bn", "Marathi": "mr", "Telugu": "te", "Tamil": "ta", "Gujarati": "gu","Urdu": "ur", "Kannada": "kn", "Malayalam": "ml", "Punjabi": "pa", "Odia": "or", "Assamese": "as"}INFO = json.load(open(os.path.join(HERE, "models.json"), encoding="utf-8"))52 unmodified linesdef info(lang):m = INFO[LANGS[lang]]return (f'<p class="ul-label">Draft English → {lang} · 17.3M parameters · {m["folder"]} MB at int8 · 'f'chrF++ FLORES+ {m["fl"]:.2f} · <a href="https://huggingface.co/{REPO}-{LANGS[lang]}">model card</a></p>')40 unmodified lines"Can you send me the invoice for the last three months?","My phone battery dies by the afternoon even though I charge it overnight."]with gr.Blocks(title=f"Draft · Udgam Labs") as demo:gr.HTML(header(NAME, "Translator · English → 12 languages","Twelve small translation models, 17.3M parameters and 17.7 MB each at int8. They run here on a ""shared CPU, and offline on yours or in your browser: see the model cards for the quick starts."))123413 unmodified lines1819202122232425262752 unmodified lines8081828384858640 unmodified lines127128129130131132133"""Paar demo Space: twelve small English-to-X translators (16 Nov 2026; four on 14 Nov), 17.3M parameters each,run as CTranslate2 int8 on the Space's CPU, greedy, one sentence at a time, exactly as in the model cards' quick start.The model folders are copies inside this Space, so restarts never fetch from the model repos (no inflated downloadcounts); each run is counted once at mcp.udgamlabs.com/count (model, language, channel, outcome; never the text).13 unmodified linesfrom gradio_theme import CSS, HEAD, footer, header, themeHERE = os.path.dirname(os.path.abspath(__file__))NAME = "Paar"COUNT_URL = os.environ.get("UDGAM_COUNT_URL", "https://mcp.udgamlabs.com/count")COUNT_MODEL = os.environ.get("UDGAM_COUNT_MODEL", NAME.lower())REPO = os.environ.get("UDGAM_REPO_PREFIX", "udgamlabs/Paar-en")LANGS = {"Hindi": "hi", "Bengali": "bn", "Marathi": "mr", "Telugu": "te", "Tamil": "ta", "Gujarati": "gu","Urdu": "ur", "Kannada": "kn", "Malayalam": "ml", "Punjabi": "pa", "Odia": "or", "Assamese": "as"}INFO = json.load(open(os.path.join(HERE, "models.json"), encoding="utf-8"))52 unmodified linesdef info(lang):m = INFO[LANGS[lang]]return (f'<p class="ul-label">Paar English → {lang} · 17.3M parameters · {m["folder"]} MB at int8 · 'f'chrF++ FLORES+ {m["fl"]:.2f} · <a href="https://huggingface.co/{REPO}-{LANGS[lang]}">model card</a></p>')40 unmodified lines"Can you send me the invoice for the last three months?","My phone battery dies by the afternoon even though I charge it overnight."]with gr.Blocks(title=f"Paar · Udgam Labs") as demo:gr.HTML(header(NAME, "Translator · English → 12 languages","Twelve small translation models, 17.3M parameters and 17.7 MB each at int8. They run here on a ""shared CPU, and offline on yours or in your browser: see the model cards for the quick starts."))
app.py+5-5