Spaces:
Runtime error
Runtime error
anyantudre
commited on
Update goai_traduction.py
Browse files- goai_traduction.py +1 -1
goai_traduction.py
CHANGED
@@ -13,7 +13,7 @@ def goai_traduction(text, src_lang, tgt_lang):
|
|
13 |
trans_pipe = pipeline("translation",
|
14 |
model=model, tokenizer=tokenizer,
|
15 |
src_lang=src_lang, tgt_lang=tgt_lang,
|
16 |
-
max_length=max_length
|
17 |
device=device
|
18 |
)
|
19 |
|
|
|
13 |
trans_pipe = pipeline("translation",
|
14 |
model=model, tokenizer=tokenizer,
|
15 |
src_lang=src_lang, tgt_lang=tgt_lang,
|
16 |
+
max_length=max_length,
|
17 |
device=device
|
18 |
)
|
19 |
|