Vaibhav84 commited on
Commit
88a2ad5
·
1 Parent(s): 5aada05
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -118,7 +118,7 @@ def upload_PDF(file: UploadFile = File(...)):
118
  @app.post("/uploadJobDescriptionPDF2/")
119
  def process_pdf_file(file: bytes = File(...)):
120
  # Save file locally for processing
121
-
122
  reserve_pdf_on_memory = io.BytesIO(file)
123
  load_pdf = PyPDF2.PdfReader(reserve_pdf_on_memory)
124
  for page in load_pdf.pages:
 
118
  @app.post("/uploadJobDescriptionPDF2/")
119
  def process_pdf_file(file: bytes = File(...)):
120
  # Save file locally for processing
121
+ text =''
122
  reserve_pdf_on_memory = io.BytesIO(file)
123
  load_pdf = PyPDF2.PdfReader(reserve_pdf_on_memory)
124
  for page in load_pdf.pages: