localize / README.md
rakib7's picture
Update README.md
cb80cb4 verified
|
Raw History Blame Contribute Delete
2.5 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade
metadata
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

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:

# 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