Spaces:
Runtime error
Runtime error
add cat and dog images and change app.py
Browse files
app.py
CHANGED
@@ -23,17 +23,24 @@ def predict(img):
|
|
23 |
return dict(zip(categories, map(float, probs)))
|
24 |
|
25 |
|
26 |
-
title = "
|
27 |
|
28 |
-
description = "A cat predictor model trained on the Pets dataset with fastai.
|
29 |
|
30 |
|
31 |
-
article = "<p style='text-align: center'><span style='font-size: 15pt;'>
|
32 |
|
33 |
|
34 |
-
image = gr.inputs.Image(shape=(
|
35 |
label = gr.outputs.Label()
|
36 |
-
examples = [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
interpretation = 'default'
|
38 |
enable_queue = True
|
39 |
|
|
|
23 |
return dict(zip(categories, map(float, probs)))
|
24 |
|
25 |
|
26 |
+
title = "Cat or Dog Predictor"
|
27 |
|
28 |
+
description = "A cat or dog predictor model trained on the Pets dataset with fastai."
|
29 |
|
30 |
|
31 |
+
article = "<p style='text-align: center'><span style='font-size: 15pt;'>Cat or Dog Predictor. Zakia Salod. 2022. </span></p>"
|
32 |
|
33 |
|
34 |
+
image = gr.inputs.Image(shape=(512, 512))
|
35 |
label = gr.outputs.Label()
|
36 |
+
examples = [
|
37 |
+
['cat1.jpg'],
|
38 |
+
['dog1.jpg'],
|
39 |
+
['cat2.jpg'],
|
40 |
+
['dog2.jpg'],
|
41 |
+
['cat3.jpg'],
|
42 |
+
['dog3.jpg'],
|
43 |
+
]
|
44 |
interpretation = 'default'
|
45 |
enable_queue = True
|
46 |
|
cat1.jpg
ADDED
![]() |
cat2.jpg
ADDED
![]() |
cat3.jpg
ADDED
![]() |
dog1.jpg
ADDED
![]() |
dog2.jpg
ADDED
![]() |
dog3.jpg
ADDED
![]() |