tony346 commited on
Commit
5fbbeb6
1 Parent(s): dcf37d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,9 +14,9 @@ from langchain.llms import HuggingFaceHub
14
 
15
  def get_pdf_text(pdf_docs):
16
  text = ''
17
- pdf_file_ = open(pdf_docs,'rb')
18
  # text = "example hojin"
19
- pdf_reader = PdfReader(pdf_file_)
20
  for page in pdf_reader.pages:
21
  text += page.extract_text()
22
 
 
14
 
15
  def get_pdf_text(pdf_docs):
16
  text = ''
17
+ # pdf_file_ = open(pdf_docs,'rb')
18
  # text = "example hojin"
19
+ pdf_reader = PdfReader(pdf_docs)
20
  for page in pdf_reader.pages:
21
  text += page.extract_text()
22