Skip to content

Commit 3148e52

Browse files
authored
Merge pull request Azure#60 from rastala/master
fix json output
2 parents 603f4a6 + dda402d commit 3148e52

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tutorials/02.deploy-models.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,8 @@
296296
" data = np.array(json.loads(raw_data)['data'])\n",
297297
" # make prediction\n",
298298
" y_hat = model.predict(data)\n",
299-
" return json.dumps(y_hat.tolist())"
299+
" # you can return any data type as long as it is JSON-serializable\n",
300+
" return y_hat.tolist()"
300301
]
301302
},
302303
{

0 commit comments

Comments
 (0)