Pipeline: translation_xx_to_yy not working for Mbart

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 :upside_down_face:

Iā€™m using facebook/mbart-large-cc25 btw

were you able to figure out the issue? Iā€™m stuck in a similar situation.