tomato commited on
Commit
152a7cc
β€’
1 Parent(s): 58c460a

fix [gradio] error

Browse files
Files changed (1) hide show
  1. app.py +12 -13
app.py CHANGED
@@ -21,18 +21,17 @@ def summarize(transcript, sentence_count):
21
 
22
 
23
  demo = gr.Interface(fn = summarize,
24
- inputs = [gr.inputs.Textbox(lines=10,
25
- placeholder="Input something...",
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,
33
- label="Summary")],
34
-
35
- title = "🎈 Summarizer 🎈",
36
- enable_queue=True)
37
 
38
  demo.launch()
 
21
 
22
 
23
  demo = gr.Interface(fn = summarize,
24
+ inputs = [gr.Textbox(lines=10,
25
+ placeholder="Input something...",
26
+ label='Text here !!'),
27
+ gr.Slider(minimum=1,
28
+ maximum=10,
29
+ step=1,
30
+ label='Sentence Count')],
31
+ outputs = [gr.Textbox(lines=10,
32
+ label="Summary")],
33
+
34
+ title = "🎈 Summarizer 🎈",
35
+ enable_queue=True)
 
36
 
37
  demo.launch()