From 19321bb231f5eebbae2763fc6162e02ef6d478a5 Mon Sep 17 00:00:00 2001 From: Salomon Popp Date: Wed, 2 Nov 2022 13:55:17 +0100 Subject: [PATCH 1/3] Allow custom ServingRuntimes Signed-off-by: hansinikarunarathne --- frontend/src/app/shared/utils.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/frontend/src/app/shared/utils.ts b/frontend/src/app/shared/utils.ts index f637e92..cda9621 100644 --- a/frontend/src/app/shared/utils.ts +++ b/frontend/src/app/shared/utils.ts @@ -143,14 +143,7 @@ export function getPredictorExtensionSpec( predictor: PredictorSpec, ): PredictorExtensionSpec { if (predictor.model) { - if ( - Object.values(PredictorType).includes( - predictor.model?.modelFormat.name as PredictorType, - ) - ) { - const spec = predictor.model; - return spec; - } + return predictor.model } else { for (const predictorType of Object.values(PredictorType)) { if (predictorType in predictor) { From b687dcb58bb493d44a31cef5341b28fd4a2ed191 Mon Sep 17 00:00:00 2001 From: Hansini Karunarathne <107214435+hansinikarunarathne@users.noreply.github.com> Date: Tue, 27 Aug 2024 23:29:46 +0530 Subject: [PATCH 2/3] Added prettier check to makefile Signed-off-by: Hansini Karunarathne <107214435+hansinikarunarathne@users.noreply.github.com> --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 881b2f1..90ce0a9 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,10 @@ 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} . From 900d96a04e25bb167b736f26542ace532d97cd44 Mon Sep 17 00:00:00 2001 From: hansinikarunarathne Date: Tue, 3 Sep 2024 13:20:39 +0530 Subject: [PATCH 3/3] formated Signed-off-by: hansinikarunarathne --- frontend/src/app/shared/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/shared/utils.ts b/frontend/src/app/shared/utils.ts index cda9621..6b78ce8 100644 --- a/frontend/src/app/shared/utils.ts +++ b/frontend/src/app/shared/utils.ts @@ -143,7 +143,7 @@ export function getPredictorExtensionSpec( predictor: PredictorSpec, ): PredictorExtensionSpec { if (predictor.model) { - return predictor.model + return predictor.model; } else { for (const predictorType of Object.values(PredictorType)) { if (predictorType in predictor) {