Update app.py
Browse files
app.py
CHANGED
@@ -27,9 +27,9 @@ TRANSLATION_DIRECTION = [
|
|
27 |
EXAMPLE = "..."
|
28 |
|
29 |
my_inputs = [
|
30 |
-
gr.Textbox(lines=5, label="Input",
|
31 |
-
gr.Radio(label="Translation Model", choices = TRANSLATION_MODELS,
|
32 |
-
gr.Radio(label="Translation Direction", choices = TRANSLATION_DIRECTION,
|
33 |
]
|
34 |
|
35 |
my_output = gr.Textbox(lines=5, label="Translation")
|
|
|
27 |
EXAMPLE = "..."
|
28 |
|
29 |
my_inputs = [
|
30 |
+
gr.Textbox(lines=5, label="Input", value=default_input),
|
31 |
+
gr.Radio(label="Translation Model", choices = TRANSLATION_MODELS, value = "NLLB"),
|
32 |
+
gr.Radio(label="Translation Direction", choices = TRANSLATION_DIRECTION, value = "lb -> en")
|
33 |
]
|
34 |
|
35 |
my_output = gr.Textbox(lines=5, label="Translation")
|