Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -41,7 +41,8 @@ async def root():
|
|
41 |
|
42 |
@app.post("/resume_parser/")
|
43 |
def process_pdf_file(file: UploadFile = File(...)):
|
44 |
-
|
|
|
45 |
with open(file.filename, 'wb') as f:
|
46 |
f.write(contents)
|
47 |
|
|
|
41 |
|
42 |
@app.post("/resume_parser/")
|
43 |
def process_pdf_file(file: UploadFile = File(...)):
|
44 |
+
print(file)
|
45 |
+
contents = file.file.read()
|
46 |
with open(file.filename, 'wb') as f:
|
47 |
f.write(contents)
|
48 |
|