Spaces:
Sleeping
Sleeping
dinhquangson
commited on
Commit
•
f226cd8
1
Parent(s):
4fac9ec
Update app.py
Browse files
app.py
CHANGED
@@ -44,9 +44,9 @@ def get_pdf_pages(pdf_docs):
|
|
44 |
with open(pdf_path, "wb") as f:
|
45 |
f.write(pdf.getbuffer())
|
46 |
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
return pages
|
51 |
|
52 |
|
|
|
44 |
with open(pdf_path, "wb") as f:
|
45 |
f.write(pdf.getbuffer())
|
46 |
|
47 |
+
pdf_loader = UnstructuredPDFLoader(pdf_path)
|
48 |
+
pdf_pages = pdf_loader.load_and_split()
|
49 |
+
pages=paegs+pdf_pages
|
50 |
return pages
|
51 |
|
52 |
|