From 14088cd81e74358689a6dc98933270bdbd95aa35 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 11 Jul 2022 17:54:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=95=8C=E9=9D=A2Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/repo/ai_model_convert.go | 1 + templates/repo/modelmanage/convertIndex.tmpl | 6 +++--- templates/repo/modelmanage/index.tmpl | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) 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 @@
{{template "repo/header" .}} -
+
{{template "base/alert" .}} - {{if eq $.MODEL_CONVERT_COUNT 0}} + {{if eq .MODEL_CONVERT_COUNT 0}}
未创建过模型转换任务
- {{if eq $.MODEL_COUNT 0}} + {{if eq .MODEL_COUNT 0}}
请您先导入模型,然后再对其进行转换。
{{end}}
使用说明:可以参考启智AI协作平台
-
+