File size: 249 Bytes
165e1bd
e108866
23216c9
165e1bd
 
 
e108866
165e1bd
 
 
 
 
235d6cc
165e1bd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr


def ui_interface(input_image):
    segmented = watershed_segmentation(input_image)
    return segmented

iface = gr.Interface(
    fn=ui_interface,
    inputs=gr.inputs.Image(),
    outputs=gr.outputs.Image()
)

iface.launch()