Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -117,7 +117,11 @@ async def parse_resume(file: UploadFile = File(...)):
|
|
117 |
os.remove(path)
|
118 |
print("🧹 File removed.")
|
119 |
|
120 |
-
|
|
|
|
|
|
|
|
|
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
|