Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,8 +61,8 @@ if __name__ == '__main__':
|
|
61 |
# define gradio demo
|
62 |
lang_codes = list(flores_codes.keys())
|
63 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
64 |
-
inputs = [gr.inputs.Dropdown(lang_codes, default='
|
65 |
-
gr.inputs.Dropdown(lang_codes, default='
|
66 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
67 |
]
|
68 |
|
@@ -73,7 +73,7 @@ if __name__ == '__main__':
|
|
73 |
demo_status = "Demo is running on CPU"
|
74 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
75 |
examples = [
|
76 |
-
['
|
77 |
]
|
78 |
|
79 |
gr.Interface(translation,
|
|
|
61 |
# define gradio demo
|
62 |
lang_codes = list(flores_codes.keys())
|
63 |
#inputs = [gr.inputs.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
64 |
+
inputs = [gr.inputs.Dropdown(lang_codes, default='Chinese (Traditional)', label='Source'),
|
65 |
+
gr.inputs.Dropdown(lang_codes, default='English', label='Target'),
|
66 |
gr.inputs.Textbox(lines=5, label="Input text"),
|
67 |
]
|
68 |
|
|
|
73 |
demo_status = "Demo is running on CPU"
|
74 |
description = f"Details: https://github.com/facebookresearch/fairseq/tree/nllb. {demo_status}"
|
75 |
examples = [
|
76 |
+
['Chinese (Traditional)', 'English', '你好']
|
77 |
]
|
78 |
|
79 |
gr.Interface(translation,
|