Spaces:
Paused
Paused
tomato
commited on
Commit
•
58c460a
1
Parent(s):
4abe175
fix [gradio.Slider] [value=5] error
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ demo = gr.Interface(fn = summarize,
|
|
26 |
label='Text here !!'),
|
27 |
gr.inputs.Slider(minimum=1,
|
28 |
maximum=10,
|
29 |
-
value=5,
|
30 |
step=1,
|
31 |
label='Sentence Count')],
|
32 |
outputs = [gr.outputs.Textbox(lines=10,
|
|
|
26 |
label='Text here !!'),
|
27 |
gr.inputs.Slider(minimum=1,
|
28 |
maximum=10,
|
29 |
+
value=lambda : 5,
|
30 |
step=1,
|
31 |
label='Sentence Count')],
|
32 |
outputs = [gr.outputs.Textbox(lines=10,
|