Skip to content

Commit 5a371b9

Browse files
author
Bryannah Hernandez
committed
port
1 parent adb9531 commit 5a371b9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/sagemaker/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ async def main():
5050
config = uvicorn.Config(
5151
"sagemaker.app:app",
5252
host="0.0.0.0",
53-
port=8000,
53+
port=9007,
5454
log_level="info",
5555
loop="asyncio",
5656
reload=True,

src/sagemaker/local_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ then
1010
fi
1111

1212
echo "Starting the service locally"
13-
uvicorn $1:app --port 8000 --host 0.0.0.0 --reload &
13+
uvicorn $1:app --port 9007 --host 0.0.0.0 --reload &
1414
UVICORN_PID=$!
1515

1616
echo $UVICORN_PID

src/sagemaker/serve/model_server/multi_model_server/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ def _invoke_multi_model_server_serving(self, request: object, content_type: str,
5252
requests_log.propagate = True
5353

5454
try:
55-
requests.get("http://localhost:8000/", verify=False).json()
55+
requests.get("http://localhost:9007/", verify=False).json()
5656
except Exception as ex:
5757
logger.error(ex)
5858
raise ex
5959

6060
try:
6161
response = requests.get(
62-
"http://0.0.0.0:8000/generate",
62+
"http://0.0.0.0:9007/generate",
6363
json=json.dumps(request),
6464
headers={"Content-Type": content_type, "Accept": accept},
6565
timeout=600,

0 commit comments

Comments
 (0)