Skip to content

Commit

Permalink
HotFix: 버그 수정 422 에러
Browse files Browse the repository at this point in the history
중간 마스킹 과정 이미지 업로드
  • Loading branch information
semnisem committed Nov 19, 2024
1 parent 9c5fe7b commit eaf80e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,10 @@ async def processShape(request: Request):
upload_image_to_s3(img_input_bytes, paths["input_path"])
upload_image_to_s3(img_mask_bytes, paths["mask_path"])
upload_image_to_s3(img_output_bytes, paths["output_path"])
upload_image_to_s3(one, paths["one"])
upload_image_to_s3(two, paths["two"])
if one is not None:
upload_image_to_s3(one, paths["one"])
if two is not None:
upload_image_to_s3(two, paths["two"])

logger.info("AI 필기 제거 결과 이미지 업로드 완료")
return JSONResponse(content={"message": "File processed successfully", "path": paths})
Expand Down

0 comments on commit eaf80e0

Please sign in to comment.