Update app.py
Browse files
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(
|
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 |
|