Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ def summarize_text(text):
|
|
21 |
break
|
22 |
abstract = ". ".join(sentences[start:end+1])
|
23 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
24 |
-
summary = summarizer(abstract, max_length=
|
25 |
do_sample=False)
|
26 |
return summary[0]['summary_text']
|
27 |
|
|
|
21 |
break
|
22 |
abstract = ". ".join(sentences[start:end+1])
|
23 |
summarizer = pipeline("summarization", model="facebook/bart-large-cnn")
|
24 |
+
summary = summarizer(abstract, max_length=30, min_length=30,
|
25 |
do_sample=False)
|
26 |
return summary[0]['summary_text']
|
27 |
|