Spaces:
Sleeping
Sleeping
Commit
·
3cbd80f
1
Parent(s):
6c2d1c5
"Camers"
Browse files
app.py
CHANGED
@@ -20,9 +20,9 @@ def classify_image(img):
|
|
20 |
return dict(zip(categories, map (float,probs)))
|
21 |
|
22 |
# %% ../app.ipynb 10
|
23 |
-
image= gr.inputs.Image(shape=(192, 192))
|
24 |
label= gr.outputs.Label()
|
25 |
-
examples =['black.jpg', 'teddy.jpg']
|
26 |
|
27 |
intf= gr.Interface(fn =classify_image, inputs= image, outputs= label, Examples= examples)
|
28 |
intf.launch()
|
|
|
20 |
return dict(zip(categories, map (float,probs)))
|
21 |
|
22 |
# %% ../app.ipynb 10
|
23 |
+
image= gr.inputs.Image(shape=(192, 192), source=["camera", "upload"])
|
24 |
label= gr.outputs.Label()
|
25 |
+
examples =['/black.jpg', '/teddy.jpg']
|
26 |
|
27 |
intf= gr.Interface(fn =classify_image, inputs= image, outputs= label, Examples= examples)
|
28 |
intf.launch()
|