sylwia malinowska
commited on
Commit
·
3ddd113
1
Parent(s):
08dead5
rename
Browse files- app.py +3 -2
- british.jpg → british-shorthair.jpg +0 -0
- european.jpg → european-shorthair.jpg +0 -0
app.py
CHANGED
|
@@ -12,9 +12,10 @@ def classify_image(img):
|
|
| 12 |
return dict(zip(categories, map(float, probs)))
|
| 13 |
|
| 14 |
|
| 15 |
-
image = gr.inputs.Image(shape=(
|
| 16 |
label = gr.outputs.Label()
|
| 17 |
-
examples = ['british
|
|
|
|
| 18 |
|
| 19 |
|
| 20 |
iface = gr.Interface(fn=classify_image, inputs=image,
|
|
|
|
| 12 |
return dict(zip(categories, map(float, probs)))
|
| 13 |
|
| 14 |
|
| 15 |
+
image = gr.inputs.Image(shape=(200, 200))
|
| 16 |
label = gr.outputs.Label()
|
| 17 |
+
examples = ['british-shorthair.jpg',
|
| 18 |
+
'maine-coon.jpg', 'european-shorthair.jpg']
|
| 19 |
|
| 20 |
|
| 21 |
iface = gr.Interface(fn=classify_image, inputs=image,
|
british.jpg → british-shorthair.jpg
RENAMED
|
File without changes
|
european.jpg → european-shorthair.jpg
RENAMED
|
File without changes
|