File size: 205 Bytes
5fa1a76
 
 
 
1
2
3
4
You can set the source language in the tokenizer:

from transformers import AutoTokenizer, AutoModelForSeq2SeqLM
en_text = "Do not meddle in the affairs of wizards, for they are subtle and quick to anger."