Spaces:
Sleeping
Sleeping
Commit
·
56bcbd9
1
Parent(s):
a5c9aa1
adding online PDF loader
Browse files
app.py
CHANGED
@@ -94,8 +94,7 @@ def process_pdf_document(document_file):
|
|
94 |
print("Document File Name :",document_file.name)
|
95 |
loader = PDFMinerLoader(document_file.name)
|
96 |
document = loader.load()
|
97 |
-
|
98 |
-
return document
|
99 |
|
100 |
|
101 |
|
|
|
94 |
print("Document File Name :",document_file.name)
|
95 |
loader = PDFMinerLoader(document_file.name)
|
96 |
document = loader.load()
|
97 |
+
return document[0]
|
|
|
98 |
|
99 |
|
100 |
|