@@ -618,10 +618,12 @@ wait $SERVE_PID
618618# unrestricted.
619619
620620SERVER_LOG=" ./sagemaker_restricted_api_server.log"
621- SERVER_ARGS=" --allow-sagemaker=true --allow-http=true --allow-grpc=false --allow-metrics=false \
622- --model-repository=` pwd` /models --model-control-mode=explicit \
623- --load-model=sm_model \
624- --http-restricted-api=model-repository:X-SM-Auth=secret"
621+ SERVER_ARGS=" --allow-sagemaker=true --allow-http=true \
622+ --allow-grpc=false --allow-metrics=false \
623+ --model-repository=` pwd` /models \
624+ --model-control-mode=explicit \
625+ --load-model=sm_model \
626+ --http-restricted-api=model-repository:X-SM-Auth=secret"
625627run_server_nowait
626628sagemaker_wait_for_server_ready $SERVER_PID 10
627629if [ " $WAIT_RET " != " 0" ]; then
@@ -744,10 +746,12 @@ wait $SERVER_PID
744746# path, not just the core HTTP endpoint.
745747
746748SERVER_LOG=" ./sagemaker_max_input_size_server.log"
747- SERVER_ARGS=" --allow-sagemaker=true --allow-http=true --allow-grpc=false --allow-metrics=false \
748- --model-repository=` pwd` /models --model-control-mode=explicit \
749- --load-model=sm_model \
750- --http-max-input-size=256"
749+ SERVER_ARGS=" --allow-sagemaker=true --allow-http=true \
750+ --allow-grpc=false --allow-metrics=false \
751+ --model-repository=` pwd` /models \
752+ --model-control-mode=explicit \
753+ --load-model=sm_model \
754+ --http-max-input-size=256"
751755run_server_nowait
752756sagemaker_wait_for_server_ready $SERVER_PID 10
753757if [ " $WAIT_RET " != " 0" ]; then
0 commit comments