File size: 1,016 Bytes
9e1f23b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
language: 
  - en
  - te
tags:
  - translation
  - machine-translation
  - NLP
  - pytorch
license: "MIT"
datasets:
  - hima06varshini/english-telugu-parallel-corpus
widget:
  - text: "Hello, how are you?"
---

# πŸ† English-to-Telugu Translation Model

This model translates **English** text into **Telugu** using a Transformer-based approach.

## πŸ“‚ Model Details
- **Model Name**: `hima06varshini/english-to-telugu-translation`
- **Developed by**: Y. Himavarshini
- **License**: MIT License

## πŸš€ Usage
```python
from transformers import AutoModelForSeq2SeqLM, AutoTokenizer

model_name = "hima06varshini/english-to-telugu-translation"
model = AutoModelForSeq2SeqLM.from_pretrained(model_name)
tokenizer = AutoTokenizer.from_pretrained(model_name)

def translate(text):
    inputs = tokenizer(text, return_tensors="pt")
    outputs = model.generate(**inputs)
    return tokenizer.decode(outputs[0], skip_special_tokens=True)

print(translate("Hello, how are you?"))