Skip to content

Commit

Permalink
Fix [Batch run] Don't show incompatible "batch-inference" hub function (
Browse files Browse the repository at this point in the history
  • Loading branch information
mavdryk authored Sep 12, 2023
1 parent c4dfa0d commit def444a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/generateTemplatesCategories.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ such restriction.

import { functionRunKinds } from '../components/Jobs/jobs.util'

const excludedFunctionNames = ['batch-inference']

export const aliasToCategory = {
analysis: 'data-analysis',
BERT: 'other',
Expand Down Expand Up @@ -88,7 +90,11 @@ export const generateHubCategories = functionTemplates => {
.map(funcTemplate => funcTemplate.metadata.version)
}
}))
.filter(template => functionRunKinds.includes(template.spec?.kind))
.filter(
template =>
functionRunKinds.includes(template.spec.kind) &&
!excludedFunctionNames.includes(template.metadata.name)
)

const hubFunctionsCategories = []

Expand Down

0 comments on commit def444a

Please sign in to comment.