ar08 commited on
Commit
154213a
·
verified ·
1 Parent(s): dcd6dd2

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
  # Generate medium-length summary
26
  result = summarizer(
27
  input_text,
28
- min_length=30, # 👈 medium minimum length
29
- max_length=100, # 👈 medium maximum length
30
  do_sample=False
31
  )
32
  return result[0]["summary_text"]
 
25
  # Generate medium-length summary
26
  result = summarizer(
27
  input_text,
28
+ min_length=100, # 👈 medium minimum length
29
+ max_length=120, # 👈 medium maximum length
30
  do_sample=False
31
  )
32
  return result[0]["summary_text"]