rajistics commited on
Commit
421fdfc
·
1 Parent(s): 2d86f93

Changed language to Arabic

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ modelt = AutoModelForSeq2SeqLM.from_pretrained("facebook/nllb-200-distilled-600M
21
  tokenizert = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-600M")
22
 
23
  def translation(text):
24
- translator = pipeline('translation', model=modelt, tokenizer=tokenizert, src_lang="eng_Latn", tgt_lang='ron_Latn')
25
  output = translator(text)
26
  return (output[0]['translation_text'])
27
 
 
21
  tokenizert = AutoTokenizer.from_pretrained("facebook/nllb-200-distilled-600M")
22
 
23
  def translation(text):
24
+ translator = pipeline('translation', model=modelt, tokenizer=tokenizert, src_lang="eng_Latn", tgt_lang='aeb_Arab')
25
  output = translator(text)
26
  return (output[0]['translation_text'])
27