A model that translates English sentences to Telugu.

To use this model, use the following code:

from transformers import MBartForConditionalGeneration, MBart50TokenizerFast model_checkpoint = "harshitha2406/English_to_Telugu"

tokenizer = MBart50TokenizerFast.from_pretrained(model_checkpoint) model = MBartForConditionalGeneration.from_pretrained(model_checkpoint)

text = "This is a test case." # Sentence to translate inputs = tokenizer(text, return_tensors="pt")

outputs = model.generate(**inputs) print(tokenizer.decode(outputs[0], skip_special_tokens=True)) # ఈ ఒక పరీక్ష కేసు ఉంది.

Downloads last month
9
Safetensors
Model size
0.6B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for harshitha2406/English_to_Telugu

Finetunes
2 models

Space using harshitha2406/English_to_Telugu 1