File size: 2,251 Bytes
d1f8e44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
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.