Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,15 +131,5 @@ def predict(img):
|
|
| 131 |
|
| 132 |
return Image.fromarray(mask.astype('uint8'))
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
-
def ParentSplitter(x):
|
| 138 |
-
return Path(x).parent.name==test_name
|
| 139 |
-
|
| 140 |
-
|
| 141 |
-
|
| 142 |
-
|
| 143 |
-
|
| 144 |
# Creamos la interfaz y la lanzamos.
|
| 145 |
-
gr.Interface(fn=predict, inputs=
|
|
|
|
| 131 |
|
| 132 |
return Image.fromarray(mask.astype('uint8'))
|
| 133 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
# Creamos la interfaz y la lanzamos.
|
| 135 |
+
gr.Interface(fn=predict, inputs=["image"], outputs=["image"],examples=['color_184.jpg','color_154.jpg']).launch(share=True)
|