Spaces:
Paused
Paused
tomato
commited on
Commit
Β·
152a7cc
1
Parent(s):
58c460a
fix [gradio] error
Browse files
app.py
CHANGED
@@ -21,18 +21,17 @@ def summarize(transcript, sentence_count):
|
|
21 |
|
22 |
|
23 |
demo = gr.Interface(fn = summarize,
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
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()
|