Spaces:
Runtime error
Runtime error
anyantudre
commited on
Commit
•
0ae08c7
1
Parent(s):
98f2613
Update goai_traduction.py
Browse files- goai_traduction.py +1 -1
goai_traduction.py
CHANGED
@@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_id)
|
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
|
9 |
|
10 |
|
11 |
-
def
|
12 |
trans_pipe = pipeline("translation",
|
13 |
model=model, tokenizer=tokenizer,
|
14 |
src_lang=src_lang, tgt_lang=tgt_lang,
|
|
|
8 |
model = AutoModelForSeq2SeqLM.from_pretrained(model_id)
|
9 |
|
10 |
|
11 |
+
def goai_traduction(text, src_lang, tgt_lang):
|
12 |
trans_pipe = pipeline("translation",
|
13 |
model=model, tokenizer=tokenizer,
|
14 |
src_lang=src_lang, tgt_lang=tgt_lang,
|