Update app.py
Browse files
app.py
CHANGED
|
@@ -39,5 +39,5 @@ def predict(img):
|
|
| 39 |
return Image.fromarray(mask.astype('uint8'))
|
| 40 |
|
| 41 |
# Creamos la interfaz y la lanzamos.
|
| 42 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(type='
|
| 43 |
|
|
|
|
| 39 |
return Image.fromarray(mask.astype('uint8'))
|
| 40 |
|
| 41 |
# Creamos la interfaz y la lanzamos.
|
| 42 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Image(type='numpy'), examples=['color_154.jpg','color_155.jpg']).launch(share=False)
|
| 43 |
|