Spaces:
Sleeping
Sleeping
Commit
·
9da46b6
1
Parent(s):
71cbbff
Update app.py
Browse files
app.py
CHANGED
@@ -51,9 +51,9 @@ if __name__ == "__main__":
|
|
51 |
# run_btn.click(rmbg_fn, [input_img], [output_mask, output_img])
|
52 |
# app.launch(show_api=True, show_error=True, share=True)
|
53 |
gr.Interface(fn=rmbg_fn,
|
54 |
-
inputs=gr.
|
55 |
-
outputs=[gr.
|
56 |
-
gr.
|
57 |
title="Anime Remove Background",
|
58 |
description="demo for [https://github.com/SkyTNT/anime-segmentation/](https://github.com/SkyTNT/anime-segmentation/)",
|
59 |
examples=[[f"examples/{x:02d}.jpg"] for x in range(1, 4)],
|
|
|
51 |
# run_btn.click(rmbg_fn, [input_img], [output_mask, output_img])
|
52 |
# app.launch(show_api=True, show_error=True, share=True)
|
53 |
gr.Interface(fn=rmbg_fn,
|
54 |
+
inputs=gr.Image(label="input image"),
|
55 |
+
outputs=[gr.Image(label="mask"),
|
56 |
+
gr.Image(label="result", image_mode="RGBA")],
|
57 |
title="Anime Remove Background",
|
58 |
description="demo for [https://github.com/SkyTNT/anime-segmentation/](https://github.com/SkyTNT/anime-segmentation/)",
|
59 |
examples=[[f"examples/{x:02d}.jpg"] for x in range(1, 4)],
|