Jordan Myers
commited on
Commit
·
975a324
1
Parent(s):
8210be8
lang codes fix?
Browse files
app.py
CHANGED
@@ -44,8 +44,8 @@ app = gr.Interface(
|
|
44 |
fn=translate,
|
45 |
inputs=[
|
46 |
gr.components.Textbox(label="Text"),
|
47 |
-
gr.components.Dropdown(label="Source Language", choices=LANG_CODES.keys()),
|
48 |
-
gr.components.Dropdown(label="Target Language", choices=LANG_CODES.keys()),
|
49 |
gr.Slider(label="Number of return sequences", value=1, minimum=1, maximum=12)
|
50 |
],
|
51 |
outputs=["text"],
|
|
|
44 |
fn=translate,
|
45 |
inputs=[
|
46 |
gr.components.Textbox(label="Text"),
|
47 |
+
gr.components.Dropdown(label="Source Language", choices=list(LANG_CODES.keys())),
|
48 |
+
gr.components.Dropdown(label="Target Language", choices=list(LANG_CODES.keys())),
|
49 |
gr.Slider(label="Number of return sequences", value=1, minimum=1, maximum=12)
|
50 |
],
|
51 |
outputs=["text"],
|