lauragordo commited on
Commit
0eb5004
·
verified ·
1 Parent(s): f60d9d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -11
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=gr.inputs.Image(shape=(128, 128)), outputs=gr.outputs.Label(num_top_classes=3),examples=['color_184.jpg','color_154.jpg']).launch(share=False)
 
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)