Skip to content

Commit 8829623

Browse files
committed
Also fixed some plumber markdown
1 parent 8a1684a commit 8829623

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

advanced_functionality/r_bring_your_own/r_bring_your_own.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@
227227
"\n",
228228
"\n",
229229
"#' Ping to show server is there\n",
230-
"#' @post /ping\n",
230+
"#' @get /ping\n",
231231
"function() {\n",
232-
" list(status='200', code='200')}\n",
232+
" return('')}\n",
233233
"\n",
234234
"\n",
235235
"#' Parse input and return the prediction from the model\n",
@@ -268,7 +268,7 @@
268268
"```Dockerfile\n",
269269
"FROM ubuntu:16.04\n",
270270
"\n",
271-
"MAINTAINER David Arpin <arpin@amazon.com>\n",
271+
"MAINTAINER Amazon SageMaker Examples <amazon-sagemaker-examples@amazon.com>\n",
272272
"\n",
273273
"RUN apt-get -y update && apt-get install -y --no-install-recommends \\\n",
274274
" wget \\\n",
@@ -597,7 +597,7 @@
597597
"source": [
598598
"iris = pd.read_csv('iris.csv')\n",
599599
"\n",
600-
"runtime = boto3.Session().client('sagemaker-runtime')\n",
600+
"runtime = boto3.Session().client('runtime.sagemaker')\n",
601601
"\n",
602602
"payload = iris.drop(['Sepal.Length'], axis=1).to_csv(index=False)\n",
603603
"response = runtime.invoke_endpoint(EndpointName=r_endpoint,\n",

0 commit comments

Comments
 (0)