Spaces:
Running
Running
change defualt language to Shan
Browse files
app.py
CHANGED
@@ -61,18 +61,18 @@ if __name__ == '__main__':
|
|
61 |
lang_codes = list(flores_codes.keys())
|
62 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
63 |
inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
|
64 |
-
gr.inputs.Dropdown(lang_codes, default='
|
65 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
66 |
]
|
67 |
|
68 |
outputs = gr.outputs.JSON()
|
69 |
|
70 |
-
title = "NLLB distilled 600M demo"
|
71 |
|
72 |
-
demo_status = "Demo is running on CPU"
|
73 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
74 |
examples = [
|
75 |
-
['English', '
|
76 |
]
|
77 |
|
78 |
gr.Interface(translation,
|
|
|
61 |
lang_codes = list(flores_codes.keys())
|
62 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
63 |
inputs = [gr.inputs.Dropdown(lang_codes, default='English', label='Source'),
|
64 |
+
gr.inputs.Dropdown(lang_codes, default='Shan', label='Target'),
|
65 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
66 |
]
|
67 |
|
68 |
outputs = gr.outputs.JSON()
|
69 |
|
70 |
+
title = "NLLB distilled 600M demo for shan"
|
71 |
|
72 |
+
demo_status = "Demo is running on CPU & Thanks Geonmo"
|
73 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
74 |
examples = [
|
75 |
+
['English', 'Shan', 'Hi. nice to meet you']
|
76 |
]
|
77 |
|
78 |
gr.Interface(translation,
|