Update app.py
Browse files
app.py
CHANGED
@@ -254,11 +254,11 @@ iface = gr.Interface(
|
|
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)"
|
258 |
-
gr.Number(label="Beam Size (for beam search)"
|
259 |
-
gr.Number(label="Length Penalty (for beam search)"
|
260 |
],
|
261 |
-
outputs=gr.
|
262 |
title="Translation Interface for English to Kabyle",
|
263 |
description="Translate text using a pre-trained model.",
|
264 |
)
|
|
|
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)"),
|
258 |
+
gr.Number(label="Beam Size (for beam search)"),
|
259 |
+
gr.Number(label="Length Penalty (for beam search)")
|
260 |
],
|
261 |
+
outputs=gr.Textbox(label="Transaltion"),
|
262 |
title="Translation Interface for English to Kabyle",
|
263 |
description="Translate text using a pre-trained model.",
|
264 |
)
|