ghostsInTheMachine commited on
Commit
ea720f8
·
verified ·
1 Parent(s): a0829f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -262,4 +262,19 @@ if (window.gradio_config.version.startsWith('3')) {
262
  """
263
 
264
  iface = gr.Interface(
265
- fn=remove_background
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
262
  """
263
 
264
  iface = gr.Interface(
265
+ fn=remove_background,
266
+ inputs=gr.Image(type="numpy"),
267
+ outputs=[
268
+ gr.Image(type="filepath", label="Mask"),
269
+ gr.Image(type="filepath", label="Reverse Mask"),
270
+ gr.Image(type="filepath", label="Foreground"),
271
+ gr.Image(type="filepath", label="Background")
272
+ ],
273
+ allow_flagging="never",
274
+ css=css,
275
+ js=js,
276
+ elem_id="remove-background"
277
+ )
278
+
279
+ if __name__ == "__main__":
280
+ iface.launch(debug=True)