Spaces:
Sleeping
Sleeping
cagataydag
commited on
Commit
•
0819121
1
Parent(s):
b5214cf
Update utils.py
Browse files
utils.py
CHANGED
@@ -104,7 +104,7 @@ def preprocess_text_for_abstractive_summarization(tokenizer, text):
|
|
104 |
|
105 |
def read_pdf(file):
|
106 |
pdfReader = PdfReader(file)
|
107 |
-
count = pdfReader.
|
108 |
all_page_text = ""
|
109 |
for i in range(count):
|
110 |
page = pdfReader.getPage(i)
|
|
|
104 |
|
105 |
def read_pdf(file):
|
106 |
pdfReader = PdfReader(file)
|
107 |
+
count = len(pdfReader.pages)
|
108 |
all_page_text = ""
|
109 |
for i in range(count):
|
110 |
page = pdfReader.getPage(i)
|