|
|
|
@@ -2337,7 +2337,7 @@ func InferenceJobIndex(ctx *context.Context) { |
|
|
|
tasks[i].ComputeResource = models.NPUResource |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
isQueryPrivate := isQueryPrivateModel(ctx) |
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
Type := -1 |
|
|
|
_, model_count, _ := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
@@ -2350,6 +2350,7 @@ func InferenceJobIndex(ctx *context.Context) { |
|
|
|
New: MODEL_LATEST, |
|
|
|
IsOnlyThisRepo: true, |
|
|
|
Status: 0, |
|
|
|
IsQueryPrivate: isQueryPrivate, |
|
|
|
}) |
|
|
|
ctx.Data["MODEL_COUNT"] = model_count |
|
|
|
|
|
|
|
@@ -2418,7 +2419,7 @@ func inferenceJobNewDataPrepare(ctx *context.Context) error { |
|
|
|
return err |
|
|
|
} |
|
|
|
ctx.Data["config_list"] = configList.ParaConfigs |
|
|
|
|
|
|
|
isQueryPrivate := isQueryPrivateModel(ctx) |
|
|
|
repoId := ctx.Repo.Repository.ID |
|
|
|
Type := -1 |
|
|
|
_, model_count, _ := models.QueryModel(&models.AiModelQueryOptions{ |
|
|
|
@@ -2431,6 +2432,7 @@ func inferenceJobNewDataPrepare(ctx *context.Context) error { |
|
|
|
New: MODEL_LATEST, |
|
|
|
IsOnlyThisRepo: true, |
|
|
|
Status: 0, |
|
|
|
IsQueryPrivate: isQueryPrivate, |
|
|
|
}) |
|
|
|
ctx.Data["MODEL_COUNT"] = model_count |
|
|
|
ctx.Data["datasetType"] = models.TypeCloudBrainTwo |
|
|
|
|