Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,6 @@ class Reviewer:
|
|
64 |
|
65 |
def extract_chapter(self, pdf_path):
|
66 |
file_object = BytesIO(pdf_path)
|
67 |
-
# 创建一个PDF阅读器对象
|
68 |
pdf_reader = PyPDF2.PdfReader(file_object)
|
69 |
# 获取PDF的总页数
|
70 |
num_pages = len(pdf_reader.pages)
|
|
|
64 |
|
65 |
def extract_chapter(self, pdf_path):
|
66 |
file_object = BytesIO(pdf_path)
|
|
|
67 |
pdf_reader = PyPDF2.PdfReader(file_object)
|
68 |
# 获取PDF的总页数
|
69 |
num_pages = len(pdf_reader.pages)
|