Skip to content

Commit

Permalink
Add endpoints property in TransformersModel
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Mar 8, 2024
1 parent 840a119 commit 08fabf6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/vertex_ai_huggingface_inference_toolkit/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ def __init__(
Union[aiplatform.Endpoint, aiplatform.PrivateEndpoint]
] = []

@property
def endpoints(
self,
) -> Optional[List[Union[aiplatform.Endpoint, aiplatform.PrivateEndpoint]]]:
return self._endpoints

def deploy(
self,
machine_type: Optional[str] = None,
Expand Down

0 comments on commit 08fabf6

Please sign in to comment.