Spaces:
Running
on
Zero
Running
on
Zero
Update goai_helpers/goai_traduction.py
Browse files
goai_helpers/goai_traduction.py
CHANGED
@@ -64,6 +64,7 @@ def translate_chunk(text, src_lang, tgt_lang):
|
|
64 |
#model_id = "ArissBandoss/nllb-200-3.3B-mos-fr-bidirectional-peft"
|
65 |
|
66 |
text = mark_numbers(text)
|
|
|
67 |
|
68 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=auth_token)
|
69 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_id, token=auth_token).to(device)
|
|
|
64 |
#model_id = "ArissBandoss/nllb-200-3.3B-mos-fr-bidirectional-peft"
|
65 |
|
66 |
text = mark_numbers(text)
|
67 |
+
print(text)
|
68 |
|
69 |
tokenizer = AutoTokenizer.from_pretrained(model_id, token=auth_token)
|
70 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_id, token=auth_token).to(device)
|