IotaCluster commited on
Commit
112bc5c
·
verified ·
1 Parent(s): aabd867

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -24,8 +24,8 @@ def summarize_text(text):
24
  # pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
25
  summary_list = summarizer(
26
  cleaned,
27
- max_length=200, # shorter target length for punchier summaries
28
- min_length=50,
29
  length_penalty=1.5,
30
  num_beams=3,
31
  early_stopping=True
 
24
  # pipeline will chunk long inputs automatically if you pass `max_length` and `min_length`
25
  summary_list = summarizer(
26
  cleaned,
27
+ max_length=1024, # shorter target length for punchier summaries
28
+ min_length=1000,
29
  length_penalty=1.5,
30
  num_beams=3,
31
  early_stopping=True