Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -565,6 +565,8 @@ def summarize_text(
|
|
565 |
print(f'DBG summarize_text 1 {i}')
|
566 |
outputs = model.generate(
|
567 |
inputs[:512],
|
|
|
|
|
568 |
length_penalty=2.0,
|
569 |
num_beams=4,
|
570 |
early_stopping=True
|
|
|
565 |
print(f'DBG summarize_text 1 {i}')
|
566 |
outputs = model.generate(
|
567 |
inputs[:512],
|
568 |
+
max_length=max_len,
|
569 |
+
min_length=min_len,
|
570 |
length_penalty=2.0,
|
571 |
num_beams=4,
|
572 |
early_stopping=True
|