Spaces:
Sleeping
Sleeping
Commit
·
aa31153
1
Parent(s):
5c6cca8
Update app.py
Browse files
app.py
CHANGED
@@ -34,6 +34,7 @@ def predict(img):
|
|
34 |
mask=np.reshape(mask,(400,400))
|
35 |
return Image.fromarray(mask.astype('uint8')
|
36 |
|
37 |
-
# Creamos la interfaz y la lanzamos.
|
38 |
-
|
|
|
39 |
|
|
|
34 |
mask=np.reshape(mask,(400,400))
|
35 |
return Image.fromarray(mask.astype('uint8')
|
36 |
|
37 |
+
# Creamos la interfaz y la lanzamos.
|
38 |
+
#examples=['examples/1CA SUR_1200_800.png', 'examples/1CA SUR_4000_1200.png', 'examples/1CA SUR_4800_2000.png']
|
39 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(400, 400)), outputs=gr.outputs.Image(type="pil")).launch(share=False)
|
40 |
|