Sifal commited on
Commit
3621cfc
1 Parent(s): a4cfc97

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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)", 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",
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
  )