Fix: 에러 해결

This commit is contained in:
김용수 2024-10-04 15:16:47 +09:00
parent fbc2c1b46a
commit 4370631d5c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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")
# 모델 로드