| @@ -986,7 +986,7 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm) | |||||
| ctx.RenderWithErr("DatasetUseCount is Exceed", tplModelArtsTrainJobNew, &form) | ctx.RenderWithErr("DatasetUseCount is Exceed", tplModelArtsTrainJobNew, &form) | ||||
| return | return | ||||
| } | } | ||||
| _, datasetNames, _, err := models.GetDatasetInfo(uuid) | |||||
| _, datasetNames, err := models.GetDatasetInfo(uuid) | |||||
| if err != nil { | if err != nil { | ||||
| log.Error("GetDatasetInfo failed:%v", err, ctx.Data["MsgID"]) | log.Error("GetDatasetInfo failed:%v", err, ctx.Data["MsgID"]) | ||||
| trainJobErrorNewDataPrepare(ctx, form) | trainJobErrorNewDataPrepare(ctx, form) | ||||
| @@ -1265,7 +1265,7 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ | |||||
| ctx.RenderWithErr("DatasetUseCount is Exceed", tplModelArtsTrainJobVersionNew, &form) | ctx.RenderWithErr("DatasetUseCount is Exceed", tplModelArtsTrainJobVersionNew, &form) | ||||
| return | return | ||||
| } | } | ||||
| _, datasetNames, _, err := models.GetDatasetInfo(uuid) | |||||
| _, datasetNames, err := models.GetDatasetInfo(uuid) | |||||
| if err != nil { | if err != nil { | ||||
| log.Error("GetDatasetInfo failed:%v", err, ctx.Data["MsgID"]) | log.Error("GetDatasetInfo failed:%v", err, ctx.Data["MsgID"]) | ||||
| versionErrorDataPrepare(ctx, form) | versionErrorDataPrepare(ctx, form) | ||||