From 4370631d5cf166258fee8b8f2b07d869ca02d139 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=9A=A9=EC=88=98?= Date: Fri, 4 Oct 2024 15:16:47 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=97=90=EB=9F=AC=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ai/app/api/yolo/detection.py | 2 +- ai/app/api/yolo/segmentation.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ai/app/api/yolo/detection.py b/ai/app/api/yolo/detection.py index 27a80cb..dc7565c 100644 --- a/ai/app/api/yolo/detection.py +++ b/ai/app/api/yolo/detection.py @@ -51,7 +51,7 @@ async def detection_predict(request: PredictRequest): send_slack_message(f"추론 결과 변환 완료 (projectId: {project_id}). 걸린 시간: {time.time() - start_time:.2f} 초", status="success") - send_slack_message(f"Detection predict 성공 (projectId: {project_id}) {response}", status="success") + send_slack_message(f"Detection predict 성공 (projectId: {project_id}) {len(response)}", status="success") return response diff --git a/ai/app/api/yolo/segmentation.py b/ai/app/api/yolo/segmentation.py index 71203f1..0763a58 100644 --- a/ai/app/api/yolo/segmentation.py +++ b/ai/app/api/yolo/segmentation.py @@ -18,7 +18,7 @@ router = APIRouter() @router.post("/predict") async def segmentation_predict(request: PredictRequest): project_id = request.project_id - send_slack_message(f"Segmentation predict 요청 (projectId: {project_id}, 이미지 개수: {len(request.data)})", + send_slack_message(f"Segmentation predict 요청 (projectId: {project_id}, 이미지 개수: {len(request.image_list)})", status="success") # 모델 로드