Spaces:
Runtime error
Runtime error
Changed language to Arabic
Browse files
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='
|
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 |
|