Vaibhav84 commited on
Commit
eb32f81
·
1 Parent(s): f40468d
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -116,7 +116,7 @@ def upload_PDF(file: UploadFile = File(...)):
116
  return {"message": f"Successfully uploaded {contents}"}
117
 
118
  @app.post("/uploadJobDescriptionPDF2/")
119
- def process_pdf_file(file: UploadFile = File(...)):
120
  # Save file locally for processing
121
  contents = file.read()
122
  with open(file.filename, 'wb') as f:
 
116
  return {"message": f"Successfully uploaded {contents}"}
117
 
118
  @app.post("/uploadJobDescriptionPDF2/")
119
+ def process_pdf_file(file: bytes = File(...)):
120
  # Save file locally for processing
121
  contents = file.read()
122
  with open(file.filename, 'wb') as f: