Closed trolley813 closed 2 months ago
The comments above are probably spam sent from hacked accounts. Don't know if they can be blocked or at least complained about.
Hello @trolley813,
Double thanks to you, both for :
I will provide a commit for fixing the nllb module ASAP based on your advices.
Thanks again :+1:
Commit 9ecd647 fix this issue. Credits go to @trolley813, both for reporting the issue and fixing it.
The
lang_code_to_id
intransformers
library was deprecated sometime ago, so attempting to use the translator fails withAs explained in huggingface/transformers#31348, the correct solution is to use
convert_tokens_to_ids
instead (I've tested and can confirm that it does indeed work).Here's the patch: