Skip to content

Commit 422d167

Browse files
authored
Update Cars_model.ipynb
1 parent 2ebd0ba commit 422d167

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

Cars_model.ipynb

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -705,27 +705,6 @@
705705
"pred_class"
706706
]
707707
},
708-
{
709-
"cell_type": "markdown",
710-
"metadata": {},
711-
"source": [
712-
"```python\n",
713-
"@app.route(\"/classify-url\", methods=[\"GET\"])\n",
714-
"async def classify_url(request):\n",
715-
" bytes = await get_bytes(request.query_params[\"url\"])\n",
716-
" img = open_image(BytesIO(bytes))\n",
717-
" _,_,losses = learner.predict(img)\n",
718-
" return JSONResponse({\n",
719-
" \"predictions\": sorted(\n",
720-
" zip(cat_learner.data.classes, map(float, losses)),\n",
721-
" key=lambda p: p[1],\n",
722-
" reverse=True\n",
723-
" )\n",
724-
" })\n",
725-
" \n",
726-
"```"
727-
]
728-
},
729708
{
730709
"cell_type": "code",
731710
"execution_count": null,

0 commit comments

Comments
 (0)