Spaces:
Sleeping
Sleeping
Tenzin Gyalpo
commited on
Commit
·
cc247c4
1
Parent(s):
007b281
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ if __name__ == '__main__':
|
|
63 |
# define gradio demo
|
64 |
lang_codes = list(flores_codes.keys())
|
65 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
66 |
-
inputs = [gr.inputs.Dropdown(lang_codes, default='
|
67 |
gr.inputs.Dropdown(lang_codes, default='English', label='Target'),
|
68 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
69 |
]
|
@@ -75,7 +75,7 @@ if __name__ == '__main__':
|
|
75 |
demo_status = "Demo is running on CPU"
|
76 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
77 |
examples = [
|
78 |
-
['
|
79 |
]
|
80 |
|
81 |
gr.Interface(translation,
|
|
|
63 |
# define gradio demo
|
64 |
lang_codes = list(flores_codes.keys())
|
65 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
66 |
+
inputs = [gr.inputs.Dropdown(lang_codes, default='Standard Tibetan', label='Source'),
|
67 |
gr.inputs.Dropdown(lang_codes, default='English', label='Target'),
|
68 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
69 |
]
|
|
|
75 |
demo_status = "Demo is running on CPU"
|
76 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
77 |
examples = [
|
78 |
+
['Standard Tibetan', 'English', 'ཁྱེད་ཀྱིས་ཟས་ཟིན་ནམ།']
|
79 |
]
|
80 |
|
81 |
gr.Interface(translation,
|