Spaces:
Runtime error
Runtime error
add sod output
Browse files
app.py
CHANGED
@@ -41,6 +41,6 @@ def sod_inpaint(img):
|
|
41 |
|
42 |
|
43 |
examples = glob.glob('examples/*.*')
|
44 |
-
inputs = gr.inputs.Image(shape=(512,512
|
45 |
iface = gr.Interface(fn=sod_inpaint, inputs=inputs, outputs=["image", "image"], examples=examples, title='Salient Object Detection + Inpaint', description='Upload an image and you will see the fg and inpainted bg', theme='huggingface')
|
46 |
iface.launch()
|
|
|
41 |
|
42 |
|
43 |
examples = glob.glob('examples/*.*')
|
44 |
+
inputs = gr.inputs.Image(shape=(512,512), image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="numpy", label=None, optional=False)
|
45 |
iface = gr.Interface(fn=sod_inpaint, inputs=inputs, outputs=["image", "image"], examples=examples, title='Salient Object Detection + Inpaint', description='Upload an image and you will see the fg and inpainted bg', theme='huggingface')
|
46 |
iface.launch()
|