Skip to content

Commit 114449d

Browse files
committed
Tutorial fixes
1 parent d940aca commit 114449d

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

tutorials/01.train-models.ipynb

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565
"outputs": [],
6666
"source": [
67-
"%matplotlib inline\n",
67+
"%matplotlib notebook\n",
6868
"import numpy as np\n",
6969
"import matplotlib\n",
7070
"import matplotlib.pyplot as plt\n",
@@ -201,13 +201,6 @@
201201
"Download the MNIST dataset and save the files into a `data` directory locally. Images and labels for both training and testing are downloaded."
202202
]
203203
},
204-
{
205-
"cell_type": "code",
206-
"execution_count": null,
207-
"metadata": {},
208-
"outputs": [],
209-
"source": []
210-
},
211204
{
212205
"cell_type": "code",
213206
"execution_count": null,

tutorials/02.deploy-models.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
},
9898
"outputs": [],
9999
"source": [
100-
"%matplotlib inline\n",
100+
"%matplotlib notebook\n",
101101
"import numpy as np\n",
102102
"import matplotlib\n",
103103
"import matplotlib.pyplot as plt\n",
@@ -480,7 +480,7 @@
480480
"test_samples = bytes(test_samples, encoding = 'utf8')\n",
481481
"\n",
482482
"# predict using the deployed model\n",
483-
"result = json.loads(service.run(input_data=test_samples))\n",
483+
"result = service.run(input_data=test_samples)\n",
484484
"\n",
485485
"# compare actual value vs. the predicted values:\n",
486486
"i = 0\n",

0 commit comments

Comments
 (0)