Skip to content

Commit

Permalink
Revert "Allow custom ServingRuntimes (#92)" (#93)
Browse files Browse the repository at this point in the history
* Revert "Allow custom ServingRuntimes (#92)"

This reverts commit 4675bb9.

Signed-off-by: hansinikarunarathne <[email protected]>

* Add prettier to makefile

Signed-off-by: hansinikarunarathne <[email protected]>

---------

Signed-off-by: hansinikarunarathne <[email protected]>
  • Loading branch information
hansinikarunarathne authored Sep 4, 2024
1 parent 4675bb9 commit 31d77bd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ 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 31d77bd

Please sign in to comment.