wenpeng commited on
Commit
e182d37
·
1 Parent(s): 5657662
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,5 +38,5 @@ def sod_inpaint(img):
38
 
39
  examples = glob.glob('examples/*.*')
40
  inputs = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="numpy", label=None, optional=False)
41
- iface = gr.Interface(fn=sod_inpaint, inputs=inputs, outputs="image", examples=examples, title='显著物体消除', description='这是一个图像API,功能是自动把画面中的显著物体消除', theme='huggingface')
42
  iface.launch()
 
38
 
39
  examples = glob.glob('examples/*.*')
40
  inputs = gr.inputs.Image(shape=None, image_mode="RGB", invert_colors=False, source="upload", tool="editor", type="numpy", label=None, optional=False)
41
+ iface = gr.Interface(fn=sod_inpaint, inputs=inputs, outputs="image", examples=examples, title='Salient Object Detection + Inpaint', description='Upload a image and you will find something disappear', theme='huggingface')
42
  iface.launch()