Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,7 +64,7 @@ class Reviewer:
|
|
64 |
def extract_chapter(self, pdf_path):
|
65 |
with open(pdf_path, 'rb') as file:
|
66 |
# 创建一个PDF阅读器对象
|
67 |
-
pdf_reader = PyPDF2.PdfReader(
|
68 |
# 获取PDF的总页数
|
69 |
num_pages = len(pdf_reader.pages)
|
70 |
# 初始化提取状态和提取文本
|
|
|
64 |
def extract_chapter(self, pdf_path):
|
65 |
with open(pdf_path, 'rb') as file:
|
66 |
# 创建一个PDF阅读器对象
|
67 |
+
pdf_reader = PyPDF2.PdfReader(pdf_path)
|
68 |
# 获取PDF的总页数
|
69 |
num_pages = len(pdf_reader.pages)
|
70 |
# 初始化提取状态和提取文本
|