ArissBandoss commited on
Commit
7cc5f39
·
verified ·
1 Parent(s): c220549

Update goai_helpers/goai_traduction.py

Browse files
Files changed (1) hide show
  1. goai_helpers/goai_traduction.py +1 -0
goai_helpers/goai_traduction.py CHANGED
@@ -60,6 +60,7 @@ def goai_traduction(text, src_lang, tgt_lang):
60
  no_repeat_ngram_size=0,
61
  length_penalty=2.0
62
  )
 
63
 
64
  return translation
65
 
 
60
  no_repeat_ngram_size=0,
61
  length_penalty=2.0
62
  )
63
+ translation = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0]
64
 
65
  return translation
66