diff --git a/routers/repo/ai_model_convert.go b/routers/repo/ai_model_convert.go index b7ce6cbed..8d069d33b 100644 --- a/routers/repo/ai_model_convert.go +++ b/routers/repo/ai_model_convert.go @@ -585,6 +585,7 @@ func ShowModelConvertInfo(ctx *context.Context) { func ConvertModelTemplate(ctx *context.Context) { ctx.Data["isModelManage"] = true + ctx.Data["TRAIN_COUNT"] = 0 SetModelCount(ctx) ctx.Data["ModelManageAccess"] = ctx.Repo.CanWrite(models.UnitTypeModelManage) ShowModelConvertPageInfo(ctx) diff --git a/templates/repo/modelmanage/convertIndex.tmpl b/templates/repo/modelmanage/convertIndex.tmpl index 3765b5961..d883ea68b 100644 --- a/templates/repo/modelmanage/convertIndex.tmpl +++ b/templates/repo/modelmanage/convertIndex.tmpl @@ -26,7 +26,7 @@