Update app.py
Browse files
app.py
CHANGED
|
@@ -252,11 +252,11 @@ import gradio as gr
|
|
| 252 |
iface = gr.Interface(
|
| 253 |
fn=translate,
|
| 254 |
inputs=[
|
| 255 |
-
gr.
|
| 256 |
-
gr.
|
| 257 |
-
gr.
|
| 258 |
-
gr.
|
| 259 |
-
gr.
|
| 260 |
],
|
| 261 |
outputs=gr.outputs.Textbox("Translation"),
|
| 262 |
title="Translation Interface for English to Kabyle",
|
|
|
|
| 252 |
iface = gr.Interface(
|
| 253 |
fn=translate,
|
| 254 |
inputs=[
|
| 255 |
+
gr.Textbox("Enter a sentence to translate"),
|
| 256 |
+
gr.Radio(['greedy', 'beam search'], label="Decoding Strategy"),
|
| 257 |
+
gr.Number(label="Length Extend (for greedy)", default=5),
|
| 258 |
+
gr.Number(label="Beam Size (for beam search)", default=5),
|
| 259 |
+
gr.Number(label="Length Penalty (for beam search)", default=0.6)
|
| 260 |
],
|
| 261 |
outputs=gr.outputs.Textbox("Translation"),
|
| 262 |
title="Translation Interface for English to Kabyle",
|