hima06varshini commited on
Commit
94ce7a3
·
verified ·
1 Parent(s): a3e3a49

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -2
README.md CHANGED
@@ -1,3 +1,33 @@
 
 
 
 
 
 
 
 
 
 
1
  ---
2
- license: cc-by-4.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # **English-to-Telugu Translation Model** 🏆
3
+
4
+ ## **📌 Model Overview**
5
+ This is a **Neural Machine Translation (NMT) model** trained to translate English sentences into Telugu using **Transformer-based architectures**.
6
+
7
+ - ✅ **Handles complex sentence structures**
8
+ - ✅ **Supports general & conversational language**
9
+ - ✅ **Fine-tuned on English-Telugu parallel corpora**
10
+
11
  ---
12
+
13
+ ## **📖 How to Use the Model**
14
+ You can load this model using **Hugging Face Transformers**:
15
+
16
+ ```python
17
+ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
18
+
19
+ model_name = "hima06varshini/english-to-telugu-translation"
20
+ token = "YOUR_ACCESS_TOKEN" # Replace with your Hugging Face token if required
21
+
22
+ # Load Model & Tokenizer
23
+ model = AutoModelForSeq2SeqLM.from_pretrained(model_name, token=token)
24
+ tokenizer = AutoTokenizer.from_pretrained(model_name, token=token)
25
+
26
+ def translate(text):
27
+ inputs = tokenizer(text, return_tensors="pt")
28
+ outputs = model.generate(**inputs)
29
+ return tokenizer.decode(outputs[0], skip_special_tokens=True)
30
+
31
+ # Example Translation
32
+ text = "Hello, how are you?"
33
+ print(translate(text))