Hey all,
I’ve got a translator on another site that works perfectly fine, and has no issues with anything. I’m bringing it over to a new site, and of course, it brought issues. The main issue I have is that when I call pipeline("translation_de_to_en", model=model, tokenizer=tokenizer) it gives me a KeyError: ‘de’ which I presume to be not understanding the ‘de’ in the previous code. I’ve tried some other ways, like de_DE and en_XX but those give me awkward errors as well.
Any help would be appreciated!