Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ retriever = None
|
|
19 |
|
20 |
def extract_text_from_pdf(filepath):
|
21 |
# Use unstructured to read text from the PDF
|
22 |
-
loader = UnstructuredLoader(file_path)
|
23 |
pages = []
|
24 |
for doc in loader.lazy_load():
|
25 |
pages.append(doc)
|
|
|
19 |
|
20 |
def extract_text_from_pdf(filepath):
|
21 |
# Use unstructured to read text from the PDF
|
22 |
+
loader = UnstructuredLoader([file_path])
|
23 |
pages = []
|
24 |
for doc in loader.lazy_load():
|
25 |
pages.append(doc)
|