XicoC commited on
Commit
296af55
·
verified ·
1 Parent(s): f52683b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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