We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6662829 commit 3e3cd33Copy full SHA for 3e3cd33
src/sagemaker_pytorch_serving_container/torchserve.py
@@ -68,8 +68,12 @@ def start_torchserve(handler_service=DEFAULT_HANDLER_SERVICE):
68
69
"""
70
71
- if ENABLE_MULTI_MODEL and "SAGEMAKER_HANDLER" not in os.environ:
72
- os.environ["SAGEMAKER_HANDLER"] = handler_service
+ if ENABLE_MULTI_MODEL:
+ if "SAGEMAKER_HANDLER" not in os.environ:
73
+ os.environ["SAGEMAKER_HANDLER"] = handler_service
74
+ else:
75
+ if not os.path.exists(MODEL_STORE):
76
+ os.makedirs(MODEL_STORE)
77
78
_set_python_path()
79
0 commit comments