|
Download README.md from rakib7/localize: direct link, hf CLI and curl.
- Browser
- Download file 2.5 kB
-
https://huggingface.co/spaces/rakib7/localize/resolve/main/README.md
- Command line
-
hf download hf://spaces/rakib7/localize/README.md
-
curl -L -o README.md https://huggingface.co/spaces/rakib7/localize/resolve/main/README.md
2.5 kB
| title: NLLB-200 Universal Translator | |
| emoji: π | |
| colorFrom: blue | |
| colorTo: green | |
| sdk: gradio | |
| sdk_version: 6.4.0 | |
| app_file: app.py | |
| pinned: false | |
| license: mit | |
| # NLLB-200 Universal Translator | |
| A powerful translation application that supports 200+ languages using Meta's NLLB-200 (No Language Left Behind) model. | |
| ## Features | |
| - π **200+ Languages**: Translate between over 200 languages | |
| - π **Auto Language Detection**: Automatically detects the source language | |
| - β‘ **Fast Translation**: Powered by the distilled 600M parameter model | |
| - π¨ **User-Friendly Interface**: Clean and intuitive Gradio interface | |
| - π± **Responsive Design**: Works on desktop and mobile devices | |
| ## Supported Languages | |
| The app supports a wide range of languages including: | |
| - Major languages: English, Spanish, French, German, Chinese, Arabic, Hindi, etc. | |
| - Regional languages: Bengali, Tamil, Telugu, Urdu, Swahili, etc. | |
| - Low-resource languages: Many languages that are underserved by other translation tools | |
| ## How to Use | |
| 1. Enter your text in the input box (in any language) | |
| 2. Select your target language from the dropdown | |
| 3. Click "Translate" | |
| 4. The app will automatically detect your source language and provide the translation | |
| ## Model Information | |
| This application uses the `facebook/nllb-200-distilled-600M` model, which is a distilled version of the NLLB-200 model. The model was trained on a diverse dataset covering 200 languages and provides high-quality translations, especially for low-resource languages. | |
| **Model Card**: [facebook/nllb-200-distilled-600M](https://huggingface.co/facebook/nllb-200-distilled-600M) | |
| ## Technical Details | |
| - **Framework**: Gradio 4.16.0 | |
| - **Model**: facebook/nllb-200-distilled-600M | |
| - **Backend**: Transformers + PyTorch | |
| - **Language Detection**: Script-based heuristic detection | |
| ## Local Development | |
| To run this app locally: | |
| ```bash | |
| # Clone the repository | |
| git clone <your-repo-url> | |
| cd nllb-translator-space | |
| # Install dependencies | |
| pip install -r requirements.txt | |
| # Run the app | |
| python app.py | |
| ``` | |
| The app will be available at `http://localhost:7860` | |
| ## Limitations | |
| - Language detection is based on script analysis and may not be 100% accurate for languages sharing the same script | |
| - Maximum input length is 512 tokens | |
| - Translation quality may vary depending on the language pair | |
| ## License | |
| MIT License | |
| ## Acknowledgments | |
| - Meta AI for the NLLB-200 model | |
| - Hugging Face for the Transformers library and hosting platform | |
| - Gradio for the UI framework |