kminutti commited on
Commit
c14461d
·
verified ·
1 Parent(s): 59fcbbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from transformers import pipeline
5
  summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
6
 
7
 
8
- def summarize(text: str, min_len: int, max_len:int) -> str:
9
  summary = summarizer(text,
10
  min_length=min_len,
11
  max_length=max_len)
 
5
  summarizer = pipeline(task="summarization", model="facebook/bart-large-cnn")
6
 
7
 
8
+ def summarize_text(text: str, min_len: int, max_len:int) -> str:
9
  summary = summarizer(text,
10
  min_length=min_len,
11
  max_length=max_len)