@@ -22,15 +22,14 @@ class LocalTensorflowServing:
2222 """LocalTensorflowServing class."""
2323
2424 def _start_tensorflow_serving (
25- self , client : object , image : str , model_path : str , secret_key : str , env_vars : dict
25+ self , client : object , image : str , model_path : str , env_vars : dict
2626 ):
2727 """Starts a local tensorflow serving container.
2828
2929 Args:
3030 client: Docker client
3131 image: Image to use
3232 model_path: Path to the model
33- secret_key: Secret key to use for authentication
3433 env_vars: Environment variables to set
3534 """
3635 self .container = client .containers .run (
@@ -48,7 +47,6 @@ def _start_tensorflow_serving(
4847 environment = {
4948 "SAGEMAKER_SUBMIT_DIRECTORY" : "/opt/ml/model/code" ,
5049 "SAGEMAKER_PROGRAM" : "inference.py" ,
51- "SAGEMAKER_SERVE_SECRET_KEY" : secret_key ,
5250 "LOCAL_PYTHON" : platform .python_version (),
5351 ** env_vars ,
5452 },
@@ -99,7 +97,6 @@ def _upload_tensorflow_serving_artifacts(
9997 self ,
10098 model_path : str ,
10199 sagemaker_session : Session ,
102- secret_key : str ,
103100 s3_model_data_url : str = None ,
104101 image : str = None ,
105102 should_upload_artifacts : bool = False ,
@@ -109,7 +106,6 @@ def _upload_tensorflow_serving_artifacts(
109106 Args:
110107 model_path: Path to the model
111108 sagemaker_session: SageMaker session
112- secret_key: Secret key to use for authentication
113109 s3_model_data_url: S3 model data URL
114110 image: Image to use
115111 model_data_s3_path: S3 model data URI
@@ -142,7 +138,6 @@ def _upload_tensorflow_serving_artifacts(
142138 "SAGEMAKER_PROGRAM" : "inference.py" ,
143139 "SAGEMAKER_REGION" : sagemaker_session .boto_region_name ,
144140 "SAGEMAKER_CONTAINER_LOG_LEVEL" : "10" ,
145- "SAGEMAKER_SERVE_SECRET_KEY" : secret_key ,
146141 "LOCAL_PYTHON" : platform .python_version (),
147142 }
148143 return s3_upload_path , env_vars
0 commit comments