Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -28,8 +28,8 @@ def summarize_text(text):
|
|
28 |
end = start + 6
|
29 |
break
|
30 |
abstract = ". ".join(sentences[start:end+1])
|
31 |
-
else:
|
32 |
-
|
33 |
|
34 |
# Load BART model & tokenizer
|
35 |
tokenizer = AutoTokenizer.from_pretrained("pszemraj/led-base-book-summary")
|
|
|
28 |
end = start + 6
|
29 |
break
|
30 |
abstract = ". ".join(sentences[start:end+1])
|
31 |
+
#else:
|
32 |
+
# return("Abstract section not found")
|
33 |
|
34 |
# Load BART model & tokenizer
|
35 |
tokenizer = AutoTokenizer.from_pretrained("pszemraj/led-base-book-summary")
|