Skip to content

Commit

Permalink
Allow custom ServingRuntimes
Browse files Browse the repository at this point in the history
  • Loading branch information
disrupted committed Nov 7, 2022
1 parent a3a8e80 commit 92a85d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions frontend/src/app/shared/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,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 92a85d3

Please sign in to comment.