Update app.py
Browse files
app.py
CHANGED
@@ -48,5 +48,5 @@ def predict(img):
|
|
48 |
return(Image.fromarray(mask.astype('uint8')))
|
49 |
|
50 |
# Creamos la interfaz y la lanzamos.
|
51 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(480, 640)), outputs=gr.outputs.Image(type="pil")).launch(share=False)
|
52 |
-
|
|
|
48 |
return(Image.fromarray(mask.astype('uint8')))
|
49 |
|
50 |
# Creamos la interfaz y la lanzamos.
|
51 |
+
# gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(480, 640)), outputs=gr.outputs.Image(type="pil")).launch(share=False)
|
52 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(480, 640)), outputs=gr.outputs.Image(type="pil"),examples=['grapes1.jpg','grapes2.jpg']).launch(share=False)
|