Spaces:
Sleeping
Sleeping
| title: IndicTrans2Translator | |
| emoji: π₯ | |
| colorFrom: red | |
| colorTo: red | |
| sdk: gradio | |
| sdk_version: 5.35.0 | |
| app_file: app.py | |
| pinned: false | |
| short_description: IndicTrans2 1B Model Translation | |
| Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
| # IndicTrans2 Translation Tool | |
| A comprehensive translation application using the IndicTrans2 1B model for translating between English and Indian languages. | |
| ## Features | |
| - **Text Translation**: Direct text input and output | |
| - **Document Translation**: Upload PDF/DOCX files and download translated documents | |
| - **Multi-language Support**: 22+ Indian languages including Hindi, Bengali, Tamil, Telugu, and more | |
| - **User-friendly Interface**: Clean, intuitive design with tabbed interface | |
| ## Supported Languages | |
| - English (en) | |
| - Assamese (asm) | |
| - Bengali (ben) | |
| - Bodo (brx) | |
| - Dogri (doi) | |
| - Gujarati (guj) | |
| - Hindi (hin) | |
| - Kannada (kan) | |
| - Kashmiri (kas) | |
| - Konkani (gom) | |
| - Maithili (mai) | |
| - Malayalam (mal) | |
| - Manipuri (mni) | |
| - Marathi (mar) | |
| - Nepali (nep) | |
| - Oriya (ory) | |
| - Punjabi (pan) | |
| - Sanskrit (san) | |
| - Santali (sat) | |
| - Sindhi (snd) | |
| - Tamil (tam) | |
| - Telugu (tel) | |
| - Urdu (urd) | |
| ## Usage | |
| ### Text Translation | |
| 1. Select the "Text Translation" tab | |
| 2. Enter or paste your text in the input box | |
| 3. Choose source and target languages | |
| 4. Click "Translate Text" | |
| 5. View the translated text in the output box | |
| ### Document Translation | |
| 1. Select the "Document Translation" tab | |
| 2. Upload a PDF or DOCX file | |
| 3. Choose source and target languages | |
| 4. Click "Translate Document" | |
| 5. Download the translated document when ready | |
| ## Technical Details | |
| - **Models**: ai4bharat/indictrans2-en-indic-1B and ai4bharat/indictrans2-indic-en-1B | |
| - **Framework**: Transformers, PyTorch | |
| - **Interface**: Gradio | |
| - **Supported File Types**: PDF, DOCX | |
| - **Output Format**: Matches input format (text β text, document β document) | |
| - **Translation Directions**: English β Indic languages | |
| ## Model Information | |
| This application uses the IndicTrans2 1B model developed by AI4Bharat. The model is specifically designed for high-quality translation between English and Indian languages. | |
| ## License | |
| This project follows the licensing terms of the underlying IndicTrans2 model and its dependencies. |