Skip to content

Commit eaf80e0

Browse files
committed
HotFix: 버그 수정 422 에러
중간 마스킹 과정 이미지 업로드
1 parent 9c5fe7b commit eaf80e0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,10 @@ async def processShape(request: Request):
131131
upload_image_to_s3(img_input_bytes, paths["input_path"])
132132
upload_image_to_s3(img_mask_bytes, paths["mask_path"])
133133
upload_image_to_s3(img_output_bytes, paths["output_path"])
134-
upload_image_to_s3(one, paths["one"])
135-
upload_image_to_s3(two, paths["two"])
134+
if one is not None:
135+
upload_image_to_s3(one, paths["one"])
136+
if two is not None:
137+
upload_image_to_s3(two, paths["two"])
136138

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

0 commit comments

Comments
 (0)