metadata
library_name: transformers
tags: []
Model Card for Model ID
The model is used to convert text from English to Spanish(Seq2Seq) (Translation)
How to Get Started with the Model
Use the code below to get started with the model.
# Loading PreTrained Models
checkpoint = 'Tharunya1/English-Spanish'
tokenizer = AutoTokenizer.from_pretrained('Tharunya1/English-Spanish')
model = AutoModelForSeq2SeqLM.from_pretrained('Tharunya1/English-Spanish')
input_token = 'How are you and where is your wife?'
tokens = tokenizer(input_token,return_tensors='pt')
output = model.generate(**tokens)
tokenizer.decode(output[0],skip_special_tokens=True) ## returns "¿Cómo están y dónde está su esposa?"