Browse Source

update

tags/v1.22.1.2
liuzx 3 years ago
parent
commit
b500785333
1 changed files with 13 additions and 0 deletions
  1. +13
    -0
      routers/repo/modelarts.go

+ 13
- 0
routers/repo/modelarts.go View File

@@ -1826,6 +1826,19 @@ func inferenceJobNewDataPrepare(ctx *context.Context) error {
}
ctx.Data["config_list"] = configList.ParaConfigs

repoId := ctx.Repo.Repository.ID
Type := -1
_, model_count, _ := models.QueryModel(&models.AiModelQueryOptions{
ListOptions: models.ListOptions{
Page: 1,
PageSize: 2,
},
RepoID: repoId,
Type: Type,
New: MODEL_LATEST,
})
ctx.Data["MODEL_COUNT"] = model_count

return nil
}



Loading…
Cancel
Save