Flippinjack commited on
Commit
f4b0528
·
1 Parent(s): 12578e2

changed the maximum word value

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,8 +47,8 @@ def summarize_document(document, max_length, min_length, num_beams):
47
  return "❌ Error: Max length must be greater than min length"
48
 
49
  # Cap max_length (same as Flask)
50
- if max_length > 512:
51
- max_length = 512
52
 
53
  try:
54
  # Generate summary (same logic as Flask)
 
47
  return "❌ Error: Max length must be greater than min length"
48
 
49
  # Cap max_length (same as Flask)
50
+ if max_length > 1024:
51
+ max_length = 1024
52
 
53
  try:
54
  # Generate summary (same logic as Flask)