Rearrange example order
Browse files
app.ipynb
CHANGED
@@ -470,7 +470,7 @@
|
|
470 |
"#|export\n",
|
471 |
"image = gr.inputs.Image(shape=(192,192))\n",
|
472 |
"label = gr.outputs.Label()\n",
|
473 |
-
"examples = ['
|
474 |
"\n",
|
475 |
"intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
|
476 |
"intf.launch(inline=False)"
|
470 |
"#|export\n",
|
471 |
"image = gr.inputs.Image(shape=(192,192))\n",
|
472 |
"label = gr.outputs.Label()\n",
|
473 |
+
"examples = ['cover_drive1.jpg', 'leg_glance2.jpg', 'sweep2.jpg']]\n",
|
474 |
"\n",
|
475 |
"intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)\n",
|
476 |
"intf.launch(inline=False)"
|
app.py
CHANGED
@@ -11,7 +11,7 @@ def classify_image(img):
|
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
-
examples = ['
|
15 |
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch(inline=False)
|
11 |
|
12 |
image = gr.inputs.Image(shape=(192,192))
|
13 |
label = gr.outputs.Label()
|
14 |
+
examples = ['cover_drive1.jpg', 'leg_glance2.jpg', 'sweep2.jpg']
|
15 |
|
16 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
17 |
intf.launch(inline=False)
|