Spaces:
Running
Running
Tenzin Gyalpo
commited on
Commit
•
ed66ac9
1
Parent(s):
944c444
Update app.py
Browse files
app.py
CHANGED
@@ -65,13 +65,13 @@ if __name__ == '__main__':
|
|
65 |
# define gradio demo
|
66 |
lang_codes = list(flores_codes.keys())
|
67 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
68 |
-
inputs = [gr.Dropdown(label='Source', choices=lang_codes, value='Standard Tibetan'),
|
69 |
-
gr.Dropdown( label='Target', choices=lang_codes, value='English'),
|
70 |
-
gr.Textbox(lines=5, label="Input text"),
|
71 |
]
|
72 |
|
73 |
# outputs = gr.outputs.JSON()
|
74 |
-
outputs = gr.Textbox(lines=5, label="Translated Output")
|
75 |
|
76 |
title = "NLLB distilled 1.3B distilled [སྐད་ཡིག་གཅིག་ཀྱང་མ་ལུས་པ།]"
|
77 |
|
|
|
65 |
# define gradio demo
|
66 |
lang_codes = list(flores_codes.keys())
|
67 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
68 |
+
inputs = [gr.Dropdown(label='Source | འདི་ནས།', choices=lang_codes, value='Standard Tibetan'),
|
69 |
+
gr.Dropdown( label='Target | འདི་ལ།', choices=lang_codes, value='English'),
|
70 |
+
gr.Textbox(lines=5, label="Input text | ཡིག་གེ་འབྲི་ཡུལ།"),
|
71 |
]
|
72 |
|
73 |
# outputs = gr.outputs.JSON()
|
74 |
+
outputs = gr.Textbox(lines=5, label="Translated Output | རྒྱུར་ཟིན་པ།")
|
75 |
|
76 |
title = "NLLB distilled 1.3B distilled [སྐད་ཡིག་གཅིག་ཀྱང་མ་ལུས་པ།]"
|
77 |
|