Browse Source

模型转换界面交互。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.7.1
zouap 3 years ago
parent
commit
38893547f6
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      routers/repo/ai_model_manage.go

+ 2
- 5
routers/repo/ai_model_manage.go View File

@@ -179,8 +179,7 @@ func SaveModelConvert(ctx *context.Context) {
}
models.SaveModelConvert(modelConvert)

ConvertModelTemplate(ctx)

ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelmanage/convert_model")
}

func SaveModel(ctx *context.Context) {
@@ -270,9 +269,7 @@ func DeleteModelConvert(ctx *context.Context) {
if err != nil {
ctx.JSON(500, err.Error())
} else {
ctx.JSON(200, map[string]string{
"result_code": "0",
})
ctx.Redirect(setting.AppSubURL + ctx.Repo.RepoLink + "/modelmanage/convert_model")
}
}



Loading…
Cancel
Save