Skip to content

Commit 745dcf7

Browse files
committed
Update experiments-deploy-notebook.ipynb
1 parent 22f8786 commit 745dcf7

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

experiments-sagemaker-studio/experiments-deploy-notebook.ipynb

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@
149149
"metadata": {},
150150
"source": [
151151
"## Create Endpoint Configuration\n",
152-
"#At launch, we will support configuring REST endpoints in hosting with multiple models, e.g. for A/B testing purposes. In order to support this, customers create an endpoint configuration, that describes the distribution of traffic across the models, whether split, shadowed, or sampled in some way.In addition, the endpoint configuration describes the instance type required for model deployment, and at launch will describe the autoscaling configuration.\n"
152+
"\n",
153+
"At launch, we will support configuring REST endpoints in hosting with multiple models, e.g. for A/B testing purposes. In order to support this, customers create an endpoint configuration, that describes the distribution of traffic across the models, whether split, shadowed, or sampled in some way.In addition, the endpoint configuration describes the instance type required for model deployment, and at launch will describe the autoscaling configuration.\n"
153154
]
154155
},
155156
{
@@ -317,7 +318,7 @@
317318
"session = Session(sagemaker_runtime_client)\n",
318319
"\n",
319320
"response = sagemaker_runtime_client.invoke_endpoint(\n",
320-
" EndpointName=endpoint_name,\n",
321+
" EndpointName=endpoint_naeme,\n",
321322
" ContentType=\"image/jpeg\",\n",
322323
" Body=body)\n",
323324
"\n",
@@ -336,12 +337,12 @@
336337
"cell_type": "markdown",
337338
"metadata": {},
338339
"source": [
339-
"# Perform Inference wiht url "
340+
"# Perform Inference with url "
340341
]
341342
},
342343
{
343344
"cell_type": "code",
344-
"execution_count": 51,
345+
"execution_count": 92,
345346
"metadata": {},
346347
"outputs": [],
347348
"source": [
@@ -379,11 +380,13 @@
379380
"from sagemaker import get_execution_role\n",
380381
"\n",
381382
"sess = sage.Session()\n",
382-
"\n",
383383
"WORK_DIRECTORY = \"./test/new_hkid_front.jpg\"\n",
384384
"\n",
385385
"# S3 prefix\n",
386386
"prefix = \"DEMO-paddle-byo\"\n",
387+
"bucket = sess.default_bucket() \n",
388+
"\n",
389+
"image_uri = f'{prefix}/new_hkid_front.jpg'\n",
387390
"\n",
388391
"role = get_execution_role()\n",
389392
"\n",
@@ -405,8 +408,7 @@
405408
}
406409
],
407410
"source": [
408-
"bucket = 'sagemaker-eu-west-1-707684582322'\n",
409-
"image_uri = 'DEMO-paddle-byo/new_hkid_front.jpg'\n",
411+
"\n",
410412
"test_data = {\n",
411413
" 'bucket' : bucket,\n",
412414
" 'image_uri' : image_uri,\n",

0 commit comments

Comments
 (0)