diff --git a/routers/repo/aisafety.go b/routers/repo/aisafety.go index 821a3f59c..b4ecbadf4 100644 --- a/routers/repo/aisafety.go +++ b/routers/repo/aisafety.go @@ -97,7 +97,9 @@ func GetAiSafetyTask(ctx *context.Context) { job.BenchmarkTypeName = "Image Classification" job.CanModify = cloudbrain.CanModifyJob(ctx, job) job.CanDel = cloudbrain.CanDeleteJob(ctx, job) - + if job.Parameters == "{\"parameter\":[]}" { + job.Parameters = "" + } s, err := resource.GetCloudbrainSpec(job.ID) if err == nil { job.Spec = s