Spaces:
Runtime error
Runtime error
0x7o
commited on
Commit
•
db12f76
1
Parent(s):
f4f4284
Update app.py
Browse files
app.py
CHANGED
@@ -58,12 +58,12 @@ if __name__ == '__main__':
|
|
58 |
# define gradio demo
|
59 |
lang_codes = list(flores_codes.keys())
|
60 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
61 |
-
inputs = [gr.
|
62 |
-
gr.
|
63 |
-
gr.
|
64 |
]
|
65 |
|
66 |
-
outputs = gr.
|
67 |
|
68 |
title = "NLLB distilled 1.3B demo"
|
69 |
|
|
|
58 |
# define gradio demo
|
59 |
lang_codes = list(flores_codes.keys())
|
60 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
61 |
+
inputs = [gr.Dropdown(lang_codes, default='English', label='Source'),
|
62 |
+
gr.Dropdown(lang_codes, default='Korean', label='Target'),
|
63 |
+
gr.Textbox(lines=5, label="Input text"),
|
64 |
]
|
65 |
|
66 |
+
outputs = gr.JSON()
|
67 |
|
68 |
title = "NLLB distilled 1.3B demo"
|
69 |
|