Skip to content

Commit 4a19a33

Browse files
committed
update types and var names
1 parent 4ae201c commit 4a19a33

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

src/sagemaker/jumpstart/cache.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,8 @@ def get_hub_model(self, hub_model_arn: str) -> JumpStartModelSpecs:
473473
hub_model_arn (str): Arn for the Hub model to get specs for
474474
"""
475475

476-
specs, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.MODEL, hub_model_arn))
477-
return specs.formatted_content
476+
details, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.MODEL, hub_model_arn))
477+
return details.formatted_content
478478

479479
def get_hub(self, hub_arn: str) -> Dict[str, Any]:
480480
"""Return descriptive info for a given Hub
@@ -483,8 +483,8 @@ def get_hub(self, hub_arn: str) -> Dict[str, Any]:
483483
hub_arn (str): Arn for the Hub to get info for
484484
"""
485485

486-
manifest, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.HUB, hub_arn))
487-
return manifest.formatted_content
486+
details, _ = self._content_cache.get(JumpStartCachedContentKey(HubDataType.HUB, hub_arn))
487+
return details.formatted_content
488488

489489
def get_hub_model(self, hub_model_arn: str) -> JumpStartModelSpecs:
490490
"""Return JumpStart-compatible specs for a given Hub model

src/sagemaker/jumpstart/curated_hub/curated_hub.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818

1919
from sagemaker.session import Session
2020

21-
from sagemaker.jumpstart.curated_hub.constants import DEFAULT_CLIENT_CONFIG
22-
2321

2422
class CuratedHub:
2523
"""Class for creating and managing a curated JumpStart hub"""

0 commit comments

Comments
 (0)