Spaces:
Sleeping
Sleeping
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -566,7 +566,7 @@ def _summarize(text, max_words=20):
|
|
566 |
gen = model.generate(
|
567 |
toks,
|
568 |
length_penalty=2.0,
|
569 |
-
num_beams=
|
570 |
early_stopping=True,
|
571 |
max_length=max_words
|
572 |
)
|
|
|
566 |
gen = model.generate(
|
567 |
toks,
|
568 |
length_penalty=2.0,
|
569 |
+
num_beams=4,
|
570 |
early_stopping=True,
|
571 |
max_length=max_words
|
572 |
)
|