|
|
@@ -1117,8 +1117,8 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExict { |
|
|
|
bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExist { |
|
|
|
log.Error("Get bootfile error:", err) |
|
|
|
trainJobErrorNewDataPrepare(ctx, form) |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobNew, &form) |
|
|
@@ -1422,8 +1422,8 @@ func TrainJobCreateVersion(ctx *context.Context, form auth.CreateModelArtsTrainJ |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExict { |
|
|
|
bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExist { |
|
|
|
log.Error("Get bootfile error:", err) |
|
|
|
versionErrorDataPrepare(ctx, form) |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsTrainJobVersionNew, &form) |
|
|
@@ -2076,8 +2076,8 @@ func InferenceJobCreate(ctx *context.Context, form auth.CreateModelArtsInference |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
bootFileExict, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExict { |
|
|
|
bootFileExist, err := ctx.Repo.FileExists(bootFile, branchName) |
|
|
|
if err != nil || !bootFileExist { |
|
|
|
log.Error("Get bootfile error:", err) |
|
|
|
inferenceJobErrorNewDataPrepare(ctx, form) |
|
|
|
ctx.RenderWithErr(ctx.Tr("repo.cloudbrain_bootfile_err"), tplModelArtsInferenceJobNew, &form) |
|
|
|