Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,8 +24,8 @@ def summarize_text(text):
|
|
| 24 |
# pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
|
| 25 |
summary_list = summarizer(
|
| 26 |
cleaned,
|
| 27 |
-
max_length=
|
| 28 |
-
min_length=
|
| 29 |
length_penalty=1.5,
|
| 30 |
num_beams=3,
|
| 31 |
early_stopping=True
|
|
|
|
| 24 |
# pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
|
| 25 |
summary_list = summarizer(
|
| 26 |
cleaned,
|
| 27 |
+
max_length=1024, # shorter target length for punchier summaries
|
| 28 |
+
min_length=1000,
|
| 29 |
length_penalty=1.5,
|
| 30 |
num_beams=3,
|
| 31 |
early_stopping=True
|