Spaces:
Sleeping
Sleeping
zhangxunhui
commited on
Commit
•
d36f29b
1
Parent(s):
8d95995
Update app.py
Browse files
app.py
CHANGED
@@ -25,8 +25,8 @@ def classify_image(img):
|
|
25 |
return dict(zip(categories, map(float, probs)))
|
26 |
|
27 |
# %% app.ipynb 6
|
28 |
-
image = gr.
|
29 |
-
label = gr.
|
30 |
examples = ['Badminton.jpg', 'Cricket.jpg', 'Karate.jpg', 'Soccer.jpg', 'Swimming.jpg', 'Tennis.jpg', 'Wrestling.jpg']
|
31 |
|
32 |
# %% app.ipynb 7
|
|
|
25 |
return dict(zip(categories, map(float, probs)))
|
26 |
|
27 |
# %% app.ipynb 6
|
28 |
+
image = gr.Image(height=224, width=224)
|
29 |
+
label = gr.Label()
|
30 |
examples = ['Badminton.jpg', 'Cricket.jpg', 'Karate.jpg', 'Soccer.jpg', 'Swimming.jpg', 'Tennis.jpg', 'Wrestling.jpg']
|
31 |
|
32 |
# %% app.ipynb 7
|