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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -24,10 +24,11 @@ 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=1024, # shorter target length for punchier summaries
28
- min_length=1000,
29
- length_penalty=1.5,
30
  num_beams=3,
 
31
  early_stopping=True
32
  )
33
  return summary_list[0]["summary_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=700, # shorter target length for punchier summaries
28
+ min_length=200,
29
+ length_penalty=1.0,
30
  num_beams=3,
31
+ temperature=0.7,
32
  early_stopping=True
33
  )
34
  return summary_list[0]["summary_text"]