tejasnavada commited on
Commit
9040fd1
1 Parent(s): 3d4b172

add examples

Browse files
Files changed (11) hide show
  1. 0.jpg +0 -0
  2. 1.jpg +0 -0
  3. 2.png +0 -0
  4. 3.jpg +0 -0
  5. 4.jpg +0 -0
  6. 5.jpeg +0 -0
  7. 6.png +0 -0
  8. 7.jpg +0 -0
  9. 8.jpeg +0 -0
  10. 9.jpg +0 -0
  11. app.py +2 -1
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)