Update app.py
Browse files
app.py
CHANGED
@@ -258,9 +258,9 @@ iface = gr.Interface(
|
|
258 |
inputs=[
|
259 |
gr.Textbox(label="Input sentence"),
|
260 |
gr.Radio(['greedy', 'beam search'], label="Decoding Strategy"),
|
261 |
-
gr.Number(label="Length Extend (for greedy)"),
|
262 |
-
gr.Number(label="Beam Size (for beam search)"),
|
263 |
-
gr.Number(label="Length Penalty (for beam search)")
|
264 |
],
|
265 |
outputs=gr.Textbox(label="Translation"),
|
266 |
title="Translation Interface for English to Kabyle",
|
|
|
258 |
inputs=[
|
259 |
gr.Textbox(label="Input sentence"),
|
260 |
gr.Radio(['greedy', 'beam search'], label="Decoding Strategy"),
|
261 |
+
gr.Number(value=5,label="Length Extend (for greedy)",precision=0),
|
262 |
+
gr.Number(value=1,label="Beam Size (for beam search)",precision=0),
|
263 |
+
gr.Number(value=0.6,label="Length Penalty (for beam search)")
|
264 |
],
|
265 |
outputs=gr.Textbox(label="Translation"),
|
266 |
title="Translation Interface for English to Kabyle",
|