tejasnavada
commited on
Commit
·
9040fd1
1
Parent(s):
3d4b172
add examples
Browse files
0.jpg
ADDED
![]() |
1.jpg
ADDED
![]() |
2.png
ADDED
![]() |
3.jpg
ADDED
![]() |
4.jpg
ADDED
![]() |
5.jpeg
ADDED
![]() |
6.png
ADDED
![]() |
7.jpg
ADDED
![]() |
8.jpeg
ADDED
![]() |
9.jpg
ADDED
![]() |
app.py
CHANGED
@@ -17,6 +17,7 @@ def classify_img(img):
|
|
17 |
|
18 |
inputs = gr.inputs.Image(shape=(192,192))
|
19 |
label = gr.outputs.Label()
|
|
|
20 |
|
21 |
-
iface = gr.Interface(fn=classify_img, inputs=inputs, outputs=label, title="Insert an image of any number 0-9")
|
22 |
iface.launch(inline=False)
|
|
|
17 |
|
18 |
inputs = gr.inputs.Image(shape=(192,192))
|
19 |
label = gr.outputs.Label()
|
20 |
+
examples = ['0.jpg', '1.jpg', '2.png', '3.jpg', '4.jpg', '5.jpeg', '6.png', '7.jpg', '8.jpeg', '9.jpg',]
|
21 |
|
22 |
+
iface = gr.Interface(fn=classify_img, inputs=inputs, outputs=label, examples=examples, title="Insert an image of any number 0-9")
|
23 |
iface.launch(inline=False)
|