Spaces:
Paused
Paused
fixing deprecated API
Browse files
app.py
CHANGED
@@ -59,13 +59,13 @@ if __name__ == '__main__':
|
|
59 |
|
60 |
# define gradio demo
|
61 |
lang_codes = list(flores_codes.keys())
|
62 |
-
#inputs = [gr.
|
63 |
-
|
64 |
gr.Image.Dropdown(lang_codes, default='Korean', label='Target'),
|
65 |
gr.Image.Textbox(lines=5, label="Input text"),
|
66 |
]
|
67 |
|
68 |
-
|
69 |
|
70 |
title = "NLLB distilled 600M demo"
|
71 |
|
@@ -76,8 +76,8 @@ if __name__ == '__main__':
|
|
76 |
]
|
77 |
|
78 |
gr.Interface(translation,
|
79 |
-
|
80 |
-
|
81 |
title=title,
|
82 |
description=description,
|
83 |
).launch()
|
|
|
59 |
|
60 |
# define gradio demo
|
61 |
lang_codes = list(flores_codes.keys())
|
62 |
+
#inputs = [gr.Image.Radio(['nllb-distilled-600M', 'nllb-1.3B', 'nllb-distilled-1.3B'], label='NLLB Model'),
|
63 |
+
Image = [gr.Image.Dropdown(lang_codes, default='English', label='Source'),
|
64 |
gr.Image.Dropdown(lang_codes, default='Korean', label='Target'),
|
65 |
gr.Image.Textbox(lines=5, label="Input text"),
|
66 |
]
|
67 |
|
68 |
+
Label = gr.Label.JSON()
|
69 |
|
70 |
title = "NLLB distilled 600M demo"
|
71 |
|
|
|
76 |
]
|
77 |
|
78 |
gr.Interface(translation,
|
79 |
+
Image,
|
80 |
+
Label,
|
81 |
title=title,
|
82 |
description=description,
|
83 |
).launch()
|