Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
@@ -558,8 +558,6 @@ def summarize_text(
|
|
558 |
pegasus_tokenizer(text,return_tensors="pt").input_ids,
|
559 |
max_length=max_length,
|
560 |
num_beams = 2,
|
561 |
-
truncation=True,
|
562 |
-
padding='longest',
|
563 |
early_stopping=True
|
564 |
)[0], skip_special_tokens=True)
|
565 |
log(f'RET summarize_text with summary as {summary}')
|
|
|
558 |
pegasus_tokenizer(text,return_tensors="pt").input_ids,
|
559 |
max_length=max_length,
|
560 |
num_beams = 2,
|
|
|
|
|
561 |
early_stopping=True
|
562 |
)[0], skip_special_tokens=True)
|
563 |
log(f'RET summarize_text with summary as {summary}')
|