Skip to content

Commit c809895

Browse files
pravali96Pravali Uppugunduriaviruthen
authored
Remove insecure SSL context creation in Triton Python backend (#5375)
* Remove insecure SSL context creation in Triton Python backend * fix flake8 error --------- Co-authored-by: Pravali Uppugunduri <[email protected]> Co-authored-by: aviruthen <[email protected]>
1 parent 106117d commit c809895

File tree

1 file changed

+0
-5
lines changed
  • src/sagemaker/serve/model_server/triton

1 file changed

+0
-5
lines changed

src/sagemaker/serve/model_server/triton/model.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import absolute_import
44
import os
55
import logging
6-
import ssl
76
from pathlib import Path
87
import platform
98

@@ -13,10 +12,6 @@
1312

1413
logger = logging.getLogger(__name__)
1514

16-
# Otherwise it will complain SSL: CERTIFICATE_VERIFY_FAILED
17-
# When trying to download models from torchvision
18-
ssl._create_default_https_context = ssl._create_unverified_context
19-
2015
TRITON_MODEL_DIR = os.getenv("TRITON_MODEL_DIR")
2116

2217

0 commit comments

Comments
 (0)