Spaces:
Runtime error
Runtime error
Old-Fat-Boy
commited on
Commit
•
c4c2a8b
1
Parent(s):
620c9d6
debug app.py
Browse files
app.py
CHANGED
@@ -18,8 +18,8 @@ def classify_image(img):
|
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
# %% app.ipynb 9
|
21 |
-
image = gr.
|
22 |
-
label = gr.
|
23 |
examples = ['bird.jpg', 'above_average.jpg', 'below_average.jpg']
|
24 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
25 |
-
intf.launch(inline=False
|
|
|
18 |
return dict(zip(categories, map(float,probs)))
|
19 |
|
20 |
# %% app.ipynb 9
|
21 |
+
image = gr.Image(shape=(192,192))
|
22 |
+
label = gr.Label()
|
23 |
examples = ['bird.jpg', 'above_average.jpg', 'below_average.jpg']
|
24 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
25 |
+
intf.launch(inline=False)
|