Skip to content

Commit 19321bb

Browse files
disruptedhansinikarunarathne
authored andcommitted
Allow custom ServingRuntimes
Signed-off-by: hansinikarunarathne <[email protected]>
1 parent 07644a3 commit 19321bb

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

frontend/src/app/shared/utils.ts

+1-8
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,7 @@ export function getPredictorExtensionSpec(
143143
predictor: PredictorSpec,
144144
): PredictorExtensionSpec {
145145
if (predictor.model) {
146-
if (
147-
Object.values(PredictorType).includes(
148-
predictor.model?.modelFormat.name as PredictorType,
149-
)
150-
) {
151-
const spec = predictor.model;
152-
return spec;
153-
}
146+
return predictor.model
154147
} else {
155148
for (const predictorType of Object.values(PredictorType)) {
156149
if (predictorType in predictor) {

0 commit comments

Comments
 (0)