anzorq commited on
Commit
28ca550
·
1 Parent(s): 9e51177
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def translate(text, num_beams=4, num_return_sequences=4):
25
  output = gr.outputs.Textbox()
26
  with gr.Accordion("Advanced Options"):
27
  num_beams = gr.inputs.Slider(2, 10, step=1, label="Number of beams", default=4)
28
- num_return_sequences = gr.inputs.Slider(2, 10, step=1, label="Number of return sequences", default=4)
29
  iface = gr.Interface(fn=translate, inputs=["text", num_beams, num_return_sequences], outputs=output)
30
  iface.launch()
31
 
 
25
  output = gr.outputs.Textbox()
26
  with gr.Accordion("Advanced Options"):
27
  num_beams = gr.inputs.Slider(2, 10, step=1, label="Number of beams", default=4)
28
+ num_return_sequences = gr.inputs.Slider(2, 10, step=1, label="Number of returned sequences", default=4)
29
  iface = gr.Interface(fn=translate, inputs=["text", num_beams, num_return_sequences], outputs=output)
30
  iface.launch()
31