tensorgirl commited on
Commit
f918fa3
·
verified ·
1 Parent(s): 7c8ffba

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -40,8 +40,8 @@ async def root():
40
  return {"Text Emotion Classification":"Version 1.5 'Text'"}
41
 
42
  @app.post("/resume_parser/")
43
- async def process_pdf_file(file: UploadFile = File(...)):
44
- contents = await file.read()
45
  with open(file.filename, 'wb') as f:
46
  f.write(contents)
47
 
 
40
  return {"Text Emotion Classification":"Version 1.5 'Text'"}
41
 
42
  @app.post("/resume_parser/")
43
+ def process_pdf_file(file: UploadFile = File(...)):
44
+ contents = file.read()
45
  with open(file.filename, 'wb') as f:
46
  f.write(contents)
47