ShiwenNi commited on
Commit
4d1faf4
1 Parent(s): 338efa3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(file)
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
  # 初始化提取状态和提取文本