Update app.py
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ iface = gr.Interface(
|
|
107 |
fn=hf_inference_translate,
|
108 |
inputs=[
|
109 |
gr.inputs.Textbox(label="Input", lines=5, placeholder="Enter text to translate"),
|
110 |
-
gr.inputs.Dropdown(["en", "fr", "de", "es", "ru"],
|
111 |
],
|
112 |
outputs=[
|
113 |
gr.outputs.Textbox(label="Translated text"),
|
|
|
107 |
fn=hf_inference_translate,
|
108 |
inputs=[
|
109 |
gr.inputs.Textbox(label="Input", lines=5, placeholder="Enter text to translate"),
|
110 |
+
gr.inputs.Dropdown(["en", "fr", "de", "es", "ru"], default="de", label="Select target language")
|
111 |
],
|
112 |
outputs=[
|
113 |
gr.outputs.Textbox(label="Translated text"),
|