Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ summarizer = pipeline("summarization", model="astro21/bart-cls")
|
|
6 |
|
7 |
def summarize_text(input_text):
|
8 |
# Use the summarization pipeline to generate a summary
|
9 |
-
summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False
|
10 |
return summarized_text[0]['summary_text']
|
11 |
|
12 |
demo = gr.Interface(fn= summarize_text , inputs="text", outputs="text")
|
|
|
6 |
|
7 |
def summarize_text(input_text):
|
8 |
# Use the summarization pipeline to generate a summary
|
9 |
+
summarized_text = summarizer(input_text, max_length=128, min_length=64, do_sample=False)
|
10 |
return summarized_text[0]['summary_text']
|
11 |
|
12 |
demo = gr.Interface(fn= summarize_text , inputs="text", outputs="text")
|