|
|
@@ -501,7 +501,6 @@ func NotebookRestart(ctx *context.Context) { |
|
|
CreatedUnix: createTime, |
|
|
CreatedUnix: createTime, |
|
|
UpdatedUnix: createTime, |
|
|
UpdatedUnix: createTime, |
|
|
Spec: spec, |
|
|
Spec: spec, |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
err = models.RestartCloudbrain(task, newTask) |
|
|
err = models.RestartCloudbrain(task, newTask) |
|
|
@@ -2116,7 +2115,7 @@ func InferenceJobCreate(ctx *context.Context, form auth.CreateModelArtsInference |
|
|
datasUrlList, dataUrl, datasetNames, isMultiDataset, err := getDatasUrlListByUUIDS(uuid) |
|
|
datasUrlList, dataUrl, datasetNames, isMultiDataset, err := getDatasUrlListByUUIDS(uuid) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
inferenceJobErrorNewDataPrepare(ctx, form) |
|
|
inferenceJobErrorNewDataPrepare(ctx, form) |
|
|
ctx.RenderWithErr(ctx.Tr(errStr), tplModelArtsInferenceJobNew, &form) |
|
|
|
|
|
|
|
|
ctx.RenderWithErr(err.Error(), tplModelArtsInferenceJobNew, &form) |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
dataPath := dataUrl |
|
|
dataPath := dataUrl |
|
|
|