Skip to content

Commit

Permalink
Revert "Allow custom ServingRuntimes (#92)"
Browse files Browse the repository at this point in the history
This reverts commit 4675bb9.

Signed-off-by: hansinikarunarathne <[email protected]>
  • Loading branch information
hansinikarunarathne committed Sep 3, 2024
1 parent 4675bb9 commit b6b5564
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ IMG ?= kserve/models-web-app
TAG ?= $(shell git describe --tags --always --dirty)
ARCH ?= linux/amd64

# Prettier UI format check.
prettier-check:
npm run format:check --prefix frontend


docker-build:
docker build -t ${IMG}:${TAG} .
Expand Down
9 changes: 8 additions & 1 deletion frontend/src/app/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,14 @@ export function getPredictorExtensionSpec(
predictor: PredictorSpec,
): PredictorExtensionSpec {
if (predictor.model) {
return predictor.model;
if (
Object.values(PredictorType).includes(
predictor.model?.modelFormat.name as PredictorType,
)
) {
const spec = predictor.model;
return spec;
}
} else {
for (const predictorType of Object.values(PredictorType)) {
if (predictorType in predictor) {
Expand Down

0 comments on commit b6b5564

Please sign in to comment.