Skip to content

Commit

Permalink
adding validation for model uri
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanker13 committed Dec 12, 2023
1 parent eb7c9d0 commit a017b21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sdk/python/kubeflow/storage_init_container/hugging_face.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def __post_init__(self):
# Custom checks or validations can be added here
if self.transformer_type not in TRANSFORMER_TYPES:
raise ValueError("transformer_type must be one of %s", TRANSFORMER_TYPES)
if self.model_uri is None:
raise ValueError("model_uri cannot be none.")


@dataclass
Expand Down

0 comments on commit a017b21

Please sign in to comment.