I’m working on a translation tool using Mbart, and I’m trying to translate some text. I’m using pipeline(“translation_de_to_en”, model=model, tokenizer=tokenizer)
which should work, and is how the documentation describes. The error I’m getting is “KeyError: ‘de’”, which I have found out that its the ‘de’ in translation_de_to_en.
Anything would be appreciated 
I’m using facebook/mbart-large-cc25 btw