Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ def process_pdf_file(file: AskFileResponse):
|
|
89 |
f.write(file.content)
|
90 |
|
91 |
pdf_loader = PyPDFLoader(temp_file_path)
|
92 |
-
documents = pdf_loader.load()
|
93 |
texts = text_splitter.split_texts(documents)
|
94 |
return texts
|
95 |
|
|
|
89 |
f.write(file.content)
|
90 |
|
91 |
pdf_loader = PyPDFLoader(temp_file_path)
|
92 |
+
documents = str(pdf_loader.load())
|
93 |
texts = text_splitter.split_texts(documents)
|
94 |
return texts
|
95 |
|