|
@@ -119,7 +119,8 @@ func MustEnableModelArts(ctx *context.Context) { |
|
|
|
|
|
|
|
|
func NotebookNew(ctx *context.Context) { |
|
|
func NotebookNew(ctx *context.Context) { |
|
|
notebookNewDataPrepare(ctx) |
|
|
notebookNewDataPrepare(ctx) |
|
|
|
|
|
|
|
|
|
|
|
waitCount := cloudbrain.GetWaitingCloudbrainCount(models.TypeCloudBrainTwo, "", models.JobTypeDebug) |
|
|
|
|
|
ctx.Data["WaitCount"] = waitCount |
|
|
ctx.HTML(200, tplModelArtsNotebookNew) |
|
|
ctx.HTML(200, tplModelArtsNotebookNew) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -630,6 +631,8 @@ func TrainJobNew(ctx *context.Context) { |
|
|
ctx.ServerError("get new train-job info failed", err) |
|
|
ctx.ServerError("get new train-job info failed", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
waitCount := cloudbrain.GetWaitingCloudbrainCount(models.TypeCloudBrainTwo, "", models.JobTypeTrain) |
|
|
|
|
|
ctx.Data["WaitCount"] = waitCount |
|
|
ctx.HTML(200, tplModelArtsTrainJobNew) |
|
|
ctx.HTML(200, tplModelArtsTrainJobNew) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -782,6 +785,8 @@ func TrainJobNewVersion(ctx *context.Context) { |
|
|
ctx.ServerError("get new train-job info failed", err) |
|
|
ctx.ServerError("get new train-job info failed", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
waitCount := cloudbrain.GetWaitingCloudbrainCount(models.TypeCloudBrainTwo, "", models.JobTypeTrain) |
|
|
|
|
|
ctx.Data["WaitCount"] = waitCount |
|
|
ctx.HTML(200, tplModelArtsTrainJobVersionNew) |
|
|
ctx.HTML(200, tplModelArtsTrainJobVersionNew) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@@ -2095,6 +2100,8 @@ func InferenceJobNew(ctx *context.Context) { |
|
|
ctx.ServerError("get new inference-job info failed", err) |
|
|
ctx.ServerError("get new inference-job info failed", err) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
waitCount := cloudbrain.GetWaitingCloudbrainCount(models.TypeCloudBrainTwo, "", models.JobTypeInference) |
|
|
|
|
|
ctx.Data["WaitCount"] = waitCount |
|
|
ctx.HTML(200, tplModelArtsInferenceJobNew) |
|
|
ctx.HTML(200, tplModelArtsInferenceJobNew) |
|
|
} |
|
|
} |
|
|
func inferenceJobNewDataPrepare(ctx *context.Context) error { |
|
|
func inferenceJobNewDataPrepare(ctx *context.Context) error { |
|
|