|
|
@@ -487,8 +487,7 @@ func ShowOneVersionOtherModel(ctx *context.Context) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func ShowModelTemplate(ctx *context.Context) { |
|
|
|
ctx.Data["isModelManage"] = true |
|
|
|
func SetModelCount(ctx *context.Context) { |
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
Type := -1 |
|
|
|
_, count, _ := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
@@ -501,6 +500,12 @@ func ShowModelTemplate(ctx *context.Context) { |
|
|
|
New: MODEL_LATEST, |
|
|
|
}) |
|
|
|
ctx.Data["MODEL_COUNT"] = count |
|
|
|
} |
|
|
|
|
|
|
|
func ShowModelTemplate(ctx *context.Context) { |
|
|
|
ctx.Data["isModelManage"] = true |
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
SetModelCount(ctx) |
|
|
|
|
|
|
|
_, trainCount, _ := models.QueryModelTrainJobList(repoId) |
|
|
|
log.Info("query train count=" + fmt.Sprint(trainCount)) |
|
|
|