Skip to content

Commit

Permalink
Allow custom ServingRuntimes
Browse files Browse the repository at this point in the history
Signed-off-by: Salomon Popp <[email protected]>
  • Loading branch information
disrupted committed Jun 26, 2024
1 parent 3999015 commit 3a8c824
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions frontend/src/app/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3a8c824

Please sign in to comment.