started improving web page and added more fixes

This commit is contained in:
2024-05-10 02:12:40 +01:00
parent bf5a706ecc
commit 389cc90826
26 changed files with 4940 additions and 157 deletions

View File

@@ -936,7 +936,12 @@ func handleRemoteRunner(x *Handle) {
return c.E500M("Failed to set class status", err)
}
_, err = c.Exec("update exp_model_head set status=$1 where status=$2 and model_id=$3", MODEL_HEAD_STATUS_READY, MODEL_HEAD_STATUS_TRAINING, model.Id)
defs, err := model.GetDefinitions(c, "")
if err != nil {
return c.E500M("Failed to get definitions", err)
}
_, err = c.Exec("update exp_model_head set status=$1 where status=$2 and def_id=$3", MODEL_HEAD_STATUS_READY, MODEL_HEAD_STATUS_TRAINING, defs[0].Id)
if err != nil {
return c.E500M("Failed to set head status", err)
}