Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,8 @@ summarizer = pipeline(task="summarization",
|
|
9 |
|
10 |
|
11 |
# name of the function
|
12 |
-
def summary(text, min_len):
|
13 |
-
summary = summarizer(text,min_length=min_len,max_length=
|
14 |
return summary
|
15 |
|
16 |
|
@@ -18,6 +18,6 @@ def summary(text, min_len):
|
|
18 |
#textbox = gr.Textbox(label="Summarizer: ", placeholder="Enter the text")
|
19 |
|
20 |
|
21 |
-
demo = gr.Interface(fn=summary, inputs = [gr.Textbox(label="Summarizer: ", placeholder="Enter the text"), gr.Slider(minimum=4, maximum=6, step=1),] , outputs="text",)
|
22 |
|
23 |
demo.launch()
|
|
|
9 |
|
10 |
|
11 |
# name of the function
|
12 |
+
def summary(text, min_len,max_len):
|
13 |
+
summary = summarizer(text,min_length=min_len,max_length=max_len)
|
14 |
return summary
|
15 |
|
16 |
|
|
|
18 |
#textbox = gr.Textbox(label="Summarizer: ", placeholder="Enter the text")
|
19 |
|
20 |
|
21 |
+
demo = gr.Interface(fn=summary, inputs = [gr.Textbox(label="Summarizer: ", placeholder="Enter the text"), gr.Slider(minimum=4, maximum=6, step=1), gr.Slider(minimum=10, maximum=100, step=5),] , outputs="text",)
|
22 |
|
23 |
demo.launch()
|