From eaf80e0cc84d112c5538462b6c4ab9c5505bb1c9 Mon Sep 17 00:00:00 2001 From: semnisem Date: Wed, 20 Nov 2024 01:26:21 +0900 Subject: [PATCH] =?UTF-8?q?HotFix:=20=EB=B2=84=EA=B7=B8=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20422=20=EC=97=90=EB=9F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 중간 마스킹 과정 이미지 업로드 --- app/main.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index 66482b8..98eeb41 100644 --- a/app/main.py +++ b/app/main.py @@ -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})