Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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)
|