Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ def summarize_text(text):
|
|
| 25 |
# Generate medium-length summary
|
| 26 |
result = summarizer(
|
| 27 |
input_text,
|
| 28 |
-
min_length=
|
| 29 |
-
max_length=
|
| 30 |
do_sample=False
|
| 31 |
)
|
| 32 |
return result[0]["summary_text"]
|
|
|
|
| 25 |
# Generate medium-length summary
|
| 26 |
result = summarizer(
|
| 27 |
input_text,
|
| 28 |
+
min_length=100, # 👈 medium minimum length
|
| 29 |
+
max_length=120, # 👈 medium maximum length
|
| 30 |
do_sample=False
|
| 31 |
)
|
| 32 |
return result[0]["summary_text"]
|