Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
cdde907
1
Parent(s):
0e2437e
Update app.py
Browse files
app.py
CHANGED
@@ -37,8 +37,9 @@ def get_pdf_pages(pdf_docs):
|
|
37 |
"""
|
38 |
pages = []
|
39 |
for pdf in pdf_docs:
|
40 |
-
|
41 |
-
|
|
|
42 |
pdf_pages = pdf_loader.load_and_split()
|
43 |
pages=paegs+pdf_pages
|
44 |
return pages
|
|
|
37 |
"""
|
38 |
pages = []
|
39 |
for pdf in pdf_docs:
|
40 |
+
data=pdf.read()
|
41 |
+
print(str(len(data)))
|
42 |
+
pdf_loader = UnstructuredPDFLoader(data)
|
43 |
pdf_pages = pdf_loader.load_and_split()
|
44 |
pages=paegs+pdf_pages
|
45 |
return pages
|