varl42 commited on
Commit
a9c85ac
1 Parent(s): 1647f6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=40, min_length=40,
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