Skip to content

Commit 8acf51d

Browse files
yangawsChoiByungWook
authored andcommitted
Update region in s3 boto client in serve (#77)
1 parent dce221e commit 8acf51d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tf_container/serve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
TF_SERVING_MAXIMUM_LOAD_MODEL_TIME_IN_SECONDS = 60 * 15
3838

3939

40-
def export_saved_model(checkpoint_dir, model_path, s3=boto3.client('s3')):
40+
def export_saved_model(checkpoint_dir, model_path, s3=boto3.client('s3', region_name=os.environ.get('AWS_REGION'))):
4141
if checkpoint_dir.startswith('s3://'):
4242
bucket_name, key_prefix = cs.parse_s3_url(checkpoint_dir)
4343
prefix = os.path.join(key_prefix, 'export', 'Servo')

0 commit comments

Comments
 (0)