Spaces:
Running
Running
Update main.py
Browse files
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 |
-
|
44 |
-
contents =
|
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 |
|