Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,11 +29,11 @@ def predict(img):
|
|
| 29 |
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=predict,
|
| 32 |
-
inputs=gr.Image(type="
|
| 33 |
outputs=gr.Label(num_top_classes=3),
|
| 34 |
title="Vegetable Classifier",
|
| 35 |
description="Wgraj zdjęcie warzywa, a model powie co to jest."
|
| 36 |
)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
-
iface.launch()
|
|
|
|
| 29 |
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=predict,
|
| 32 |
+
inputs=gr.Image(type="pil"),
|
| 33 |
outputs=gr.Label(num_top_classes=3),
|
| 34 |
title="Vegetable Classifier",
|
| 35 |
description="Wgraj zdjęcie warzywa, a model powie co to jest."
|
| 36 |
)
|
| 37 |
|
| 38 |
if __name__ == "__main__":
|
| 39 |
+
iface.launch(show_error=True)
|