diff --git a/routers/repo/ai_model_manage.go b/routers/repo/ai_model_manage.go index 277dcbcc3..8b1c05348 100644 --- a/routers/repo/ai_model_manage.go +++ b/routers/repo/ai_model_manage.go @@ -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") } }