Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,5 +15,6 @@ def predict(img):
|
|
| 15 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 16 |
|
| 17 |
# Creamos la interfaz y la lanzamos.
|
| 18 |
-
gr.Interface(fn=predict, inputs="image", outputs=
|
|
|
|
| 19 |
|
|
|
|
| 15 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 16 |
|
| 17 |
# Creamos la interfaz y la lanzamos.
|
| 18 |
+
gr.Interface(fn=predict, inputs="image", outputs="label", examples=['im1.png','im2.png']).launch(share=False)
|
| 19 |
+
# gr.Interface(fn=predict, inputs="image", outputs=gr.outputs.Label(num_top_classes=3),examples=['im1.png','im2.png']).launch(share=False)
|
| 20 |
|