Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ def classify_fruit(img):
|
|
| 10 |
pred, idx, probs = learn.predict(img)
|
| 11 |
return dict(zip(categories, map(float, probs)))
|
| 12 |
|
| 13 |
-
image = gr.Image(width=224, height=224)
|
| 14 |
label = gr.Label()
|
| 15 |
|
| 16 |
inter = gr.Interface(fn=classify_fruit, inputs=image, outputs=label)
|
|
|
|
| 10 |
pred, idx, probs = learn.predict(img)
|
| 11 |
return dict(zip(categories, map(float, probs)))
|
| 12 |
|
| 13 |
+
image = gr.Image(width=224, height=224, type="pil")
|
| 14 |
label = gr.Label()
|
| 15 |
|
| 16 |
inter = gr.Interface(fn=classify_fruit, inputs=image, outputs=label)
|