Spaces:
Build error
Build error
George Sergia
commited on
Commit
·
aae26ba
1
Parent(s):
05c3454
Fix gradio code
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ def classify_bear(img):
|
|
| 10 |
return dict(zip(categories, map(float,probs)))
|
| 11 |
|
| 12 |
|
| 13 |
-
image = gr.
|
| 14 |
-
label = gr.
|
| 15 |
examples=["grizzly.jpg", "brown.jpg", "white.jpg", "black.jpg", "teddy.jpg"]
|
| 16 |
|
| 17 |
iface = gr.Interface(fn=classify_bear, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 10 |
return dict(zip(categories, map(float,probs)))
|
| 11 |
|
| 12 |
|
| 13 |
+
image = gr.components.Image(shape=(192,192))
|
| 14 |
+
label = gr.components.Label()
|
| 15 |
examples=["grizzly.jpg", "brown.jpg", "white.jpg", "black.jpg", "teddy.jpg"]
|
| 16 |
|
| 17 |
iface = gr.Interface(fn=classify_bear, inputs=image, outputs=label, examples=examples)
|