Skip to content

Commit

Permalink
add serving runtime support (#95)
Browse files Browse the repository at this point in the history
* add serving runtime support

Signed-off-by: hansinikarunarathne <hansini.20@cse.mrt.ac.lk>

* fix syntax issue

Signed-off-by: hansinikarunarathne <hansini.20@cse.mrt.ac.lk>

---------

Signed-off-by: hansinikarunarathne <hansini.20@cse.mrt.ac.lk>
  • Loading branch information
hansinikarunarathne authored Sep 14, 2024
1 parent 31d77bd commit 704dee3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ FROM python:3.12-slim AS backend-kubeflow-wheel

WORKDIR /src

RUN pip install setuptools wheel

ARG BACKEND_LIB=/kf/kubeflow/components/crud-web-apps/common/backend
COPY --from=fetch-kubeflow-kubeflow $BACKEND_LIB .
RUN python setup.py sdist bdist_wheel
Expand Down
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 704dee3

Please sign in to comment.