Browse Source

routes

tags/v1.21.12.1
Gitea 3 years ago
parent
commit
e0a2935656
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      routers/repo/modelarts.go

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

@@ -328,7 +328,7 @@ func NotebookNew(ctx *context.Context) {
json.Unmarshal([]byte(setting.FlavorInfos), &modelarts.FlavorInfos)
}
ctx.Data["flavors"] = modelarts.FlavorInfos.FlavorInfo
ctx.HTML(200, tplModelArtsNew)
ctx.HTML(200, tplModelArtsNotebookNew)
}

func NotebookCreate(ctx *context.Context, form auth.CreateModelArtsNotebookForm) {
@@ -737,9 +737,7 @@ func TrainJobCreate(ctx *context.Context, form auth.CreateModelArtsTrainJobForm)
ctx.RenderWithErr(err.Error(), tplModelArtsTrainJobNew, &form)
return
}

// ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts/train-job")\
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts")
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelarts/train-job")
}

// readDir reads the directory named by dirname and returns


Loading…
Cancel
Save