Spaces:
Runtime error
Runtime error
bthndmn12
commited on
Commit
·
06a19d8
1
Parent(s):
6fe5ae4
fixed some bugs
Browse files
app.py
CHANGED
@@ -67,13 +67,7 @@ def process_image(image_input):
|
|
67 |
|
68 |
return image, seg_image, prob_map
|
69 |
|
70 |
-
|
71 |
-
iface = gr.Interface(
|
72 |
-
|
73 |
-
inputs=gr.inputs.Image(shape=(256, 256)),
|
74 |
-
outputs=[gr.outputs.Image(label="Original Image"), gr.outputs.Image(label="Segmentation Mask"), gr.outputs.Image(label="Probability Map")],
|
75 |
-
title="Image Segmentation"
|
76 |
-
)
|
77 |
-
|
78 |
-
# Launch the interface
|
79 |
iface.launch()
|
|
|
67 |
|
68 |
return image, seg_image, prob_map
|
69 |
|
70 |
+
|
71 |
+
iface = gr.Interface(fn= process_image, inputs="image", outputs="image", title="Greeter")
|
72 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
73 |
iface.launch()
|