Sibinraj commited on
Commit
30e73d2
·
verified ·
1 Parent(s): 31932b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ def summarize_text(text,max_length):
19
  )
20
 
21
  # Validate max_length
22
- if not isinstance(max_length, int) or max_length <= 0:
23
- max_length = 50
24
 
25
  # Generate the summary
26
  summary_ids = model.generate(
 
19
  )
20
 
21
  # Validate max_length
22
+ # if not isinstance(max_length, int) or max_length <= 0:
23
+ # max_length = 50
24
 
25
  # Generate the summary
26
  summary_ids = model.generate(