We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c5fe7b commit eaf80e0Copy full SHA for eaf80e0
app/main.py
@@ -131,8 +131,10 @@ async def processShape(request: Request):
131
upload_image_to_s3(img_input_bytes, paths["input_path"])
132
upload_image_to_s3(img_mask_bytes, paths["mask_path"])
133
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"])
+ if one is not None:
+ upload_image_to_s3(one, paths["one"])
136
+ if two is not None:
137
+ upload_image_to_s3(two, paths["two"])
138
139
logger.info("AI 필기 제거 결과 이미지 업로드 완료")
140
return JSONResponse(content={"message": "File processed successfully", "path": paths})
0 commit comments