Views
No views yet
en) to Faroese (fo).Important: While the model can produce fluent translations, it is not guaranteed to be perfectly accurate on all inputs. Users should verify critical or sensitive content through human experts.
1from transformers import pipeline
2
3model_name = "barbaroo/nllb_200_1.3B_en_fo"
4
5translator = pipeline(
6 "translation",
7 model=model_name,
8 tokenizer=model_name,
9 src_lang="eng_Latn", # Language code for English
10 tgt_lang="fao_Latn" # Language code for Faroese
11)
12
13text = "Hello, how are you?"
14translation = translator(text)
15print(translation)