Alexvatti commited on
Commit
905b759
·
verified ·
1 Parent(s): b7f53d3

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
main.py CHANGED
@@ -117,7 +117,11 @@ async def parse_resume(file: UploadFile = File(...)):
117
  os.remove(path)
118
  print("🧹 File removed.")
119
 
120
- return json_result
 
 
 
 
121
 
122
  except Exception as e:
123
  import traceback
 
117
  os.remove(path)
118
  print("🧹 File removed.")
119
 
120
+ file_path = "cleaned_resume.json"
121
+ with open(file_path, "w") as f:
122
+ f.write(json_result)
123
+
124
+ return FileResponse(path=file_path, media_type="application/json", filename="cleaned_resume.json")
125
 
126
  except Exception as e:
127
  import traceback