anyantudre commited on
Commit
0ae08c7
1 Parent(s): 98f2613

Update goai_traduction.py

Browse files
Files changed (1) hide show
  1. 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 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,
 
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,