Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ def summarize_text(text):
|
|
| 25 |
# pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
|
| 26 |
summary_list = summarizer(
|
| 27 |
cleaned,
|
| 28 |
-
max_length=
|
| 29 |
-
min_length=
|
| 30 |
length_penalty=1.0,
|
| 31 |
num_beams=3,
|
| 32 |
temperature=0.7,
|
|
|
|
| 25 |
# pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
|
| 26 |
summary_list = summarizer(
|
| 27 |
cleaned,
|
| 28 |
+
max_length=250, # shorter target length for punchier summaries
|
| 29 |
+
min_length=50,
|
| 30 |
length_penalty=1.0,
|
| 31 |
num_beams=3,
|
| 32 |
temperature=0.7,
|