Browse Source

fix issue

pull/3437/head
zhoupzh 2 years ago
parent
commit
fb3ff3d071
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      routers/repo/modelarts.go

+ 2
- 1
routers/repo/modelarts.go View File

@@ -2589,7 +2589,8 @@ func inferenceJobErrorNewDataPrepare(ctx *context.Context, form auth.CreateModel
ctx.Data["datasetType"] = models.TypeCloudBrainTwo
waitCount := cloudbrain.GetWaitingCloudbrainCount(models.TypeCloudBrainTwo, "")
ctx.Data["WaitCount"] = waitCount

NotStopTaskCount, _ := cloudbrainTask.GetNotFinalStatusTaskCount(ctx.User.ID, models.TypeCloudBrainTwo, string(models.JobTypeInference))
ctx.Data["NotStopTaskCount"] = NotStopTaskCount
return nil
}
func InferenceJobShow(ctx *context.Context) {


Loading…
Cancel
Save