Spaces:
Sleeping
Sleeping
Tenzin Gyalpo
commited on
Commit
•
0d810de
1
Parent(s):
6566033
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ 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='
|
69 |
-
gr.Dropdown( label='Target | འདི་ལ།', choices=lang_codes, value='
|
70 |
gr.Textbox(lines=5, label="Input text | ཡིག་གེ་འབྲི་ཡུལ།"),
|
71 |
]
|
72 |
|
@@ -78,7 +78,7 @@ if __name__ == '__main__':
|
|
78 |
demo_status = "[སྐད་ཡིག་གཅིག་ཀྱང་མ་ལུས་པ།]"
|
79 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
80 |
examples = [
|
81 |
-
['Standard Tibetan', '
|
82 |
]
|
83 |
|
84 |
gr.Interface(translation,
|
|
|
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='English'),
|
69 |
+
gr.Dropdown( label='Target | འདི་ལ།', choices=lang_codes, value='Standard Tibetan'),
|
70 |
gr.Textbox(lines=5, label="Input text | ཡིག་གེ་འབྲི་ཡུལ།"),
|
71 |
]
|
72 |
|
|
|
78 |
demo_status = "[སྐད་ཡིག་གཅིག་ཀྱང་མ་ལུས་པ།]"
|
79 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
80 |
examples = [
|
81 |
+
[ 'English', 'Standard Tibetan', 'Weather is very good today!', 'དེ་རིང་གནམ་གཤིས་ཧ་ཅང་ལེགས་འདུག།']
|
82 |
]
|
83 |
|
84 |
gr.Interface(translation,
|