danielmartinec commited on
Commit
f8d00ea
β€’
1 Parent(s): e6e4631

Moving images its folder

Browse files
app.ipynb CHANGED
@@ -256,7 +256,7 @@
256
  "#|export\n",
257
  "image = gr.Image(width=192, height=192)\n",
258
  "label = gr.Label()\n",
259
- "examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg', 'dunno.jpg']\n",
260
  "\n",
261
  "intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
262
  "intf.launch(inline=False)"
@@ -264,7 +264,7 @@
264
  },
265
  {
266
  "cell_type": "code",
267
- "execution_count": 41,
268
  "id": "2017b1ba-f8d3-4a1d-98da-f52ce147df14",
269
  "metadata": {},
270
  "outputs": [],
@@ -274,12 +274,12 @@
274
  },
275
  {
276
  "cell_type": "code",
277
- "execution_count": 42,
278
  "id": "9e1976f1-79bb-496a-85e0-107766999c62",
279
  "metadata": {},
280
  "outputs": [],
281
  "source": [
282
- "nb_export('app.ipynb')"
283
  ]
284
  },
285
  {
 
256
  "#|export\n",
257
  "image = gr.Image(width=192, height=192)\n",
258
  "label = gr.Label()\n",
259
+ "examples = ['images/grizzly.jpg', 'images/black.jpg', 'images/teddy.jpg', 'images/dunno.jpg']\n",
260
  "\n",
261
  "intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
262
  "intf.launch(inline=False)"
 
264
  },
265
  {
266
  "cell_type": "code",
267
+ "execution_count": 5,
268
  "id": "2017b1ba-f8d3-4a1d-98da-f52ce147df14",
269
  "metadata": {},
270
  "outputs": [],
 
274
  },
275
  {
276
  "cell_type": "code",
277
+ "execution_count": 7,
278
  "id": "9e1976f1-79bb-496a-85e0-107766999c62",
279
  "metadata": {},
280
  "outputs": [],
281
  "source": [
282
+ "nbdev.export.nb_export('app.ipynb')"
283
  ]
284
  },
285
  {
app.py CHANGED
@@ -20,7 +20,7 @@ def classify_image(im):
20
  # %% ../app.ipynb 7
21
  image = gr.Image(width=192, height=192)
22
  label = gr.Label()
23
- examples = ['grizzly.jpg', 'black.jpg', 'teddy.jpg', 'dunno.jpg']
24
 
25
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
26
  intf.launch(inline=False)
 
20
  # %% ../app.ipynb 7
21
  image = gr.Image(width=192, height=192)
22
  label = gr.Label()
23
+ examples = ['images/grizzly.jpg', 'images/black.jpg', 'images/teddy.jpg', 'images/dunno.jpg']
24
 
25
  intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
26
  intf.launch(inline=False)
black.jpg β†’ images/black.jpg RENAMED
File without changes
dunno.jpg β†’ images/dunno.jpg RENAMED
File without changes
grizzly.jpg β†’ images/grizzly.jpg RENAMED
File without changes
teddy.jpg β†’ images/teddy.jpg RENAMED
File without changes