File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -411,8 +411,11 @@ def edit_registered_model(
411411 custom_metadata_list = ds_model .custom_metadata_list
412412 freeform_tags = ds_model .freeform_tags
413413 if inference_container :
414- if (inference_container == InferenceContainerTypeFamily .AQUA_TEI_CONTAINER_FAMILY
415- and inference_container_uri is None ):
414+ if (
415+ inference_container
416+ == InferenceContainerTypeFamily .AQUA_TEI_CONTAINER_FAMILY
417+ and inference_container_uri is None
418+ ):
416419 raise AquaRuntimeError (
417420 f"Failed to edit model:{ id } . Inference container URI must be provided."
418421 )
@@ -425,13 +428,17 @@ def edit_registered_model(
425428 replace = True ,
426429 )
427430 if inference_container_uri :
428- if inference_container == InferenceContainerTypeFamily .AQUA_TEI_CONTAINER_FAMILY or inference_container == None :
431+ if (
432+ inference_container
433+ == InferenceContainerTypeFamily .AQUA_TEI_CONTAINER_FAMILY
434+ or inference_container == None
435+ ):
429436 custom_metadata_list .add (
430437 key = ModelCustomMetadataFields .DEPLOYMENT_CONTAINER_URI ,
431438 value = inference_container_uri ,
432439 category = MetadataCustomCategory .OTHER ,
433440 description = f"Inference container URI for { ds_model .display_name } " ,
434- replace = True
441+ replace = True ,
435442 )
436443 else :
437444 raise AquaRuntimeError (
You can’t perform that action at this time.
0 commit comments