dinhquangson commited on
Commit
cdde907
1 Parent(s): 0e2437e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -37,8 +37,9 @@ def get_pdf_pages(pdf_docs):
37
  """
38
  pages = []
39
  for pdf in pdf_docs:
40
- print(pdf)
41
- pdf_loader = UnstructuredPDFLoader(pdf.read())
 
42
  pdf_pages = pdf_loader.load_and_split()
43
  pages=paegs+pdf_pages
44
  return pages
 
37
  """
38
  pages = []
39
  for pdf in pdf_docs:
40
+ data=pdf.read()
41
+ print(str(len(data)))
42
+ pdf_loader = UnstructuredPDFLoader(data)
43
  pdf_pages = pdf_loader.load_and_split()
44
  pages=paegs+pdf_pages
45
  return pages