Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,7 @@ translator = pipeline("translation", model=REPO_ID_NLLB)
|
|
12 |
|
13 |
my_title = "🇫🇷 Mir iwwersetzen vun an op Lëtzebuergesch ! 🇬🇧"
|
14 |
my_description = "English-Luxembourgish machine translation (MT) demo based on 3 transformer models: NLLB, MarianNMT & T5/mt5."
|
|
|
15 |
|
16 |
TRANSLATION_MODELS = [
|
17 |
"NLLB",
|
@@ -36,6 +37,10 @@ def iwwersetz(source_text):
|
|
36 |
demo=gr.Interface(
|
37 |
fn=iwwersetz,
|
38 |
inputs=my_input,
|
39 |
-
outputs=my_output
|
40 |
-
|
|
|
|
|
|
|
|
|
41 |
demo.launch()
|
|
|
12 |
|
13 |
my_title = "🇫🇷 Mir iwwersetzen vun an op Lëtzebuergesch ! 🇬🇧"
|
14 |
my_description = "English-Luxembourgish machine translation (MT) demo based on 3 transformer models: NLLB, MarianNMT & T5/mt5."
|
15 |
+
my_article = "abc"
|
16 |
|
17 |
TRANSLATION_MODELS = [
|
18 |
"NLLB",
|
|
|
37 |
demo=gr.Interface(
|
38 |
fn=iwwersetz,
|
39 |
inputs=my_input,
|
40 |
+
outputs=my_output,
|
41 |
+
title=my_title,
|
42 |
+
description = my_description,
|
43 |
+
article = my_article,
|
44 |
+
examples = EXAMPLE,
|
45 |
+
allow_flagging = False)
|
46 |
demo.launch()
|