model update
Browse files- app.ipynb +4 -0
- app.py +5 -2
- unknown-4.jpg +0 -0
- unknown-5.jpg +0 -0
- unknown-6.jpg +0 -0
app.ipynb
CHANGED
@@ -285,6 +285,10 @@
|
|
285 |
"examples = [\n",
|
286 |
" 'unknown-1.jpg',\n",
|
287 |
" 'unknown-2.jpg',\n",
|
|
|
|
|
|
|
|
|
288 |
" ]\n",
|
289 |
"\n",
|
290 |
"iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label, examples=examples)\n",
|
|
|
285 |
"examples = [\n",
|
286 |
" 'unknown-1.jpg',\n",
|
287 |
" 'unknown-2.jpg',\n",
|
288 |
+
" 'unknown-3.jpg',\n",
|
289 |
+
" 'unknown-4.jpg',\n",
|
290 |
+
" 'unknown-5.jpg',\n",
|
291 |
+
" 'unknown-6.jpg'\n",
|
292 |
" ]\n",
|
293 |
"\n",
|
294 |
"iface = gr.Interface(fn=recognize_image, inputs=image, outputs=label, examples=examples)\n",
|
app.py
CHANGED
@@ -15,9 +15,12 @@ def recognize_image(image):
|
|
15 |
image = gr.inputs.Image(shape=(192,192))
|
16 |
label = gr.outputs.Label(num_top_classes=5)
|
17 |
examples = [
|
18 |
-
|
19 |
'unknown-2.jpg',
|
20 |
-
'unknown-3.jpg'
|
|
|
|
|
|
|
21 |
|
22 |
]
|
23 |
|
|
|
15 |
image = gr.inputs.Image(shape=(192,192))
|
16 |
label = gr.outputs.Label(num_top_classes=5)
|
17 |
examples = [
|
18 |
+
'unknown-1.jpg',
|
19 |
'unknown-2.jpg',
|
20 |
+
'unknown-3.jpg',
|
21 |
+
'unknown-4.jpg',
|
22 |
+
'unknown-5.jpg',
|
23 |
+
'unknown-6.jpg'
|
24 |
|
25 |
]
|
26 |
|
unknown-4.jpg
ADDED
unknown-5.jpg
ADDED
unknown-6.jpg
ADDED