IotaCluster commited on
Commit
069ec03
·
verified ·
1 Parent(s): ab47574

Update app.py

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