From b9a64e4b6e7366301fb75dba9ad126e2928cb87c Mon Sep 17 00:00:00 2001 From: mattmcw Date: Fri, 30 Jun 2023 10:56:11 -0400 Subject: [PATCH] Email submitter after complete --- scripts/train.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/train.sh b/scripts/train.sh index ec50fa1..f3f99c0 100644 --- a/scripts/train.sh +++ b/scripts/train.sh @@ -83,5 +83,9 @@ fi MODELPATH=$(realpath "../models/${ID}/weights/best.onnx") curl -s -X POST \ - -F "model@${MODELPATH}" \ + -F "model=@${MODELPATH}" \ "${YOLO_WEB_URL}/job/${ID}" + +if [ -f ./scripts/completed_mail.sh ]; then + bash ./scripts/completed_mail.sh "${JSON}" +fi