Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
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(
|