Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,7 @@ def summarize_text(text, max_length, show_length):
|
|
37 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
38 |
|
39 |
summary_words = summary.split()
|
|
|
40 |
if len(summary_words) > max_length:
|
41 |
summary = ' '.join(summary_words[:max_length])
|
42 |
elif len(summary_words) < max_length:
|
|
|
37 |
summary = tokenizer.decode(summary_ids[0], skip_special_tokens=True)
|
38 |
|
39 |
summary_words = summary.split()
|
40 |
+
print(summary_words)
|
41 |
if len(summary_words) > max_length:
|
42 |
summary = ' '.join(summary_words[:max_length])
|
43 |
elif len(summary_words) < max_length:
|