Spaces:
Sleeping
Sleeping
Commit History
-
Log translate model/prompt, link OpenRouter key signup and leaderboard
translate events now record backend, model, and the actual prompt text used (null for the local CPU backend, which ignores the prompt file) - translate_all previously only logged a generic "OpenRouter" backend with no model id at all. Landing page also links to where to get an OpenRouter API key and to the Tibetan AI Leaderboard for model comparison. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>23eb152 -
Add opt-in usage telemetry to a private HF dataset
Logs upload, translate, edit, download, navigate, resume, and prompt events to billingsmoore/stui-usage, gated by a per-session opt-out checkbox in Settings and disclosed on the landing page. Also stops tracking CLAUDE.md and any .claude/ directory — those are local development aids now, not shared repo content. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>04721fb
-
Link back to the mlotsawa-ground-base paper and training code
Cross-reference the "Optimizing T5 for Lightweight Tibetan-English Translation" preprint and the optimizing-t5-tibetan-english-mt repo that trained the local CPU fallback model. Also document the new origin (GitHub) / space (HF Space) dual-remote setup. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>2f18d90
-
Hide the download file box until Get Files is clicked
It was defaulting to visible=True, so an empty "Download" file box showed up on page load even before any translation or download attempt. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>f944367 -
Translate one segment at a time for the local CPU backend
Batching doesn't help on CPU the way it does on GPU: a single sequence's matmuls already use all available threads, so grouping several segments into one generate() call just pads shorter ones to the longest in the group (wasted compute) and delays every result in the group until the slowest one finishes. Looping one at a time removes that padding waste and lets the UI show each translation as soon as it's ready, with per-segment progress and stop-checking instead of per-chunk. OpenRouter's batched path (which has a real reason to batch: fewer HTTP round-trips and shared "preceding" context) is unchanged. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>2cf98f7 -
Shrink translation batch size so results appear incrementally during Translate All
Previously _BATCH_SIZE (25) matched a full page, so with <=25 segments the whole page translated in a single call/inference pass and all translations appeared at once at the end. Smaller batches mean the UI's polling loop (which already re-renders the page every 0.5s) picks up newly finished segments in waves as each batch completes, instead of only after the last one. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>a8287eb -
Link local model name to its HF repo, unbold "local CPU model", clarify wording
"seq2seq" is jargon for the target audience; describe it in plain terms (a plain translation model vs. an instruction-following AI) instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>448481b -
Add usage explanation to top of app, covering local vs OpenRouter model choice
Explains the upload -> segment -> translate -> edit -> download workflow and clarifies the tradeoff between the default local CPU model (free, no prompt support, lower quality) and OpenRouter (paid, prompt-driven, higher quality). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>c75b0b8 -
Switch translation backend from Gemini to OpenRouter, add test suite
Replaces the Gemini API integration with OpenRouter: the model dropdown is now live-fetched from OpenRouter's catalog with a small curated set of recommended models pinned to the top (also used as OpenRouter's server-side model fallback chain). Adds a pytest suite covering chunking, file I/O, prompt storage, the OpenRouter backend, the backend dispatcher, the local CPU backend, and the Gradio handlers/app wiring, plus sample Tibetan input files (txt/docx/pdf) used as test fixtures. Also adds a pre-push git hook that runs the suite and blocks the push on failure. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>36fc86c -
Enable ZeroGPU on local backend, remove deprecated Docker files
HF requires at least one @spaces.GPU function to boot a gradio-sdk Space on ZeroGPU hardware; decorate the local model's translate_batch and move tensors to cuda when available. Drop the unused Dockerfile now that the Space runs on the gradio SDK instead of docker. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>9e83c68 -
Merge remote-tracking branch 'space/main'
# Conflicts: # README.md9eacf15 -
Configure Space for gradio SDK (ZeroGPU) and add academic translation prompt
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>d97df2b -
initial commit
Verified signature777f0fa -
Initial simplified TranslationUI: plain-text upload/download, single Buddhist translation prompt, Gemini or local CPU model
88a619b