Update goai_helpers/goai_traduction.py
Browse files
goai_helpers/goai_traduction.py
CHANGED
@@ -42,6 +42,7 @@ def goai_traduction(text, src_lang, tgt_lang):
|
|
42 |
max_new_tokens=1024,
|
43 |
min_length=10,
|
44 |
length_penalty=1.0,
|
|
|
45 |
no_repeat_ngram_size=0 # Désactive la pénalité pour les répétitions
|
46 |
)
|
47 |
|
|
|
42 |
max_new_tokens=1024,
|
43 |
min_length=10,
|
44 |
length_penalty=1.0,
|
45 |
+
early_stopping=False,
|
46 |
no_repeat_ngram_size=0 # Désactive la pénalité pour les répétitions
|
47 |
)
|
48 |
|