import gradio as gr | |
import numpy as np | |
from huggingface_hub import hf_hub_download | |
REPO_ID_NLLB = | |
REPO_ID_MARIANNMT = | |
REPO_ID_T5MT5 = | |
my_title = "🇫🇷 Mir iwwersetzen vun an op Lëtzebuergesch ! 🇬🇧" | |
my_description = "English-Luxembourgish machine translation (MT) demo based on 3 transforemr models: NLLB, MarianNMT & T5/mt5." | |
TRANSLATION_MODELS = [ | |
"NLLB", | |
"MarianNMT", | |
"T5/mt5" | |
] | |
TRANSLATION_DIRECTION = [ | |
"en -> lb", | |
"lb -> en" | |
] | |
EXAMPLE = "..." |