Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -73,7 +73,7 @@ def return_output(file, models,beams):
|
|
73 |
|
74 |
demo = gr.Interface(return_output, inputs=[gr.inputs.Textbox(label="Text", optional=False),
|
75 |
gr.inputs.Dropdown(['Pegasus', 'T5'], type="value", default=None, label="Models", optional=False),
|
76 |
-
gr.Slider(label="Number of Beams", minimum=
|
77 |
outputs=[gr.outputs.Textbox(label="Summary")])
|
78 |
|
79 |
if __name__ == "__main__":
|
|
|
73 |
|
74 |
demo = gr.Interface(return_output, inputs=[gr.inputs.Textbox(label="Text", optional=False),
|
75 |
gr.inputs.Dropdown(['Pegasus', 'T5'], type="value", default=None, label="Models", optional=False),
|
76 |
+
gr.Slider(label="Number of Beams", minimum=5, maximum=25, step=5, randomize=True, type="value", default=5, optional=False)],
|
77 |
outputs=[gr.outputs.Textbox(label="Summary")])
|
78 |
|
79 |
if __name__ == "__main__":
|