@@ -1285,7 +1285,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
12851285 Args:
12861286 json_obj (Dict[str, Any]): Dictionary representation of spec.
12871287 """
1288- print ("HEYHEYHEY" )
12891288 if self ._is_hub_content :
12901289 json_obj = walk_and_apply_json (json_obj , camel_to_snake )
12911290 self .model_id : str = json_obj .get ("model_id" )
@@ -1362,7 +1361,6 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
13621361 )
13631362 self .model_kwargs = deepcopy (json_obj .get ("model_kwargs" , {}))
13641363 self .deploy_kwargs = deepcopy (json_obj .get ("deploy_kwargs" , {}))
1365- print (f'HUH { json_obj .get ("predictor_specs" )} ' )
13661364 self .predictor_specs : Optional [JumpStartPredictorSpecs ] = (
13671365 JumpStartPredictorSpecs (
13681366 json_obj .get ("predictor_specs" ),
@@ -1541,7 +1539,7 @@ def from_json(self, json_obj: Dict[str, Any]) -> None:
15411539 # Handle custom fields
15421540 for custom_field , field in self .CUSTOM_FIELD_MAP .items ():
15431541 if field in json_obj :
1544- setattr (self , field , json_obj [ custom_field ] )
1542+ setattr (self , field , json_obj . get ( custom_field ) )
15451543
15461544
15471545class JumpStartMetadataConfig (JumpStartDataHolderType ):
@@ -1734,9 +1732,7 @@ def __init__(self, spec: Dict[str, Any], is_hub_content: Optional[bool] = False)
17341732 spec (Dict[str, Any]): Dictionary representation of spec.
17351733 is_hub_content (Optional[bool]): Whether the model is from a private hub.
17361734 """
1737- print ("here?" )
17381735 super ().__init__ (spec , is_hub_content )
1739- print ("hi" )
17401736 self .from_json (spec )
17411737 if self .inference_configs and self .inference_configs .get_top_config_from_ranking ():
17421738 super ().from_json (self .inference_configs .get_top_config_from_ranking ().resolved_config )
0 commit comments