Alesteba commited on
Commit
ea495de
1 Parent(s): 178e62a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -63,5 +63,6 @@ def predict(img):
63
  # return {labels[i]: float(probs[i]) for i in range(len(labels))}
64
 
65
  # Creamos la interfaz y la lanzamos.
66
- gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Label(num_top_classes=3),examples=['color_154.jpg','color_155.jpg']).launch(share=False)
 
67
 
 
63
  # return {labels[i]: float(probs[i]) for i in range(len(labels))}
64
 
65
  # Creamos la interfaz y la lanzamos.
66
+
67
+ gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(128, 128)), outputs=[gr.outputs.Image(type="pil", label="Predicción")], examples=['color_154.jpg','color_155.jpg']).launch(share=False)
68