Vaibhav84 commited on
Commit
c1932d3
·
1 Parent(s): d043de2
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def process_pdf_file(file: bytes = File(...)):
88
  def process_pdf_file1(file: bytes = File(...), data: str = str):
89
  # Save file locally for processing
90
  text =''
91
- reserve_pdf_on_memory = io.BytesIO(file.fileData)
92
  load_pdf = PyPDF2.PdfReader(reserve_pdf_on_memory)
93
  for page in load_pdf.pages:
94
  text += page.extract_text()
 
88
  def process_pdf_file1(file: bytes = File(...), data: str = str):
89
  # Save file locally for processing
90
  text =''
91
+ reserve_pdf_on_memory = io.BytesIO(file)
92
  load_pdf = PyPDF2.PdfReader(reserve_pdf_on_memory)
93
  for page in load_pdf.pages:
94
  text += page.extract_text()