Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ gradio_ui= gr.Interface(
|
|
53 |
gr.components.Textbox(label="Text"),
|
54 |
gr.components.Dropdown(label="Source Language", choices=LANGS),
|
55 |
gr.components.Dropdown(label="Target Language", choices=LANGS),
|
56 |
-
gr.components.Slider(8,
|
57 |
],
|
58 |
outputs=gr.outputs.Textbox(label="Translated text")
|
59 |
)
|
|
|
53 |
gr.components.Textbox(label="Text"),
|
54 |
gr.components.Dropdown(label="Source Language", choices=LANGS),
|
55 |
gr.components.Dropdown(label="Target Language", choices=LANGS),
|
56 |
+
gr.components.Slider(8, 400, value=400, step=8, label="Max Length")
|
57 |
],
|
58 |
outputs=gr.outputs.Textbox(label="Translated text")
|
59 |
)
|