Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,15 +62,15 @@ gr.Interface(
|
|
62 |
default="isnet-general-use",
|
63 |
label="Models"
|
64 |
),
|
65 |
-
gr.inputs.Slider(minimum=0.
|
66 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Segmentation Strength"),
|
67 |
-
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.
|
68 |
],
|
69 |
gr.outputs.Image(type="PIL", label="Output"),
|
70 |
#description = "<a href='https://huggingface.co/spaces/KenjieDec/RemBG' target='_blank'>Original article made by KenjieDec</a><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
|
71 |
title=title,
|
72 |
description=description,
|
73 |
article=article,
|
74 |
-
examples=[["lion.png", "Default", "u2net",
|
75 |
enable_queue=True
|
76 |
).launch()
|
|
|
62 |
default="isnet-general-use",
|
63 |
label="Models"
|
64 |
),
|
65 |
+
gr.inputs.Slider(minimum=0.5, maximum=1.5, default=1, label="Alpha Influence"),
|
66 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Segmentation Strength"),
|
67 |
+
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.25, label="Smoothing"),
|
68 |
],
|
69 |
gr.outputs.Image(type="PIL", label="Output"),
|
70 |
#description = "<a href='https://huggingface.co/spaces/KenjieDec/RemBG' target='_blank'>Original article made by KenjieDec</a><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
|
71 |
title=title,
|
72 |
description=description,
|
73 |
article=article,
|
74 |
+
examples=[["lion.png", "Default", "u2net", 1, 0.5, 0.25], ["girl.jpg", "Default", "u2net", 1, 0.5, 0.25], ["anime-girl.jpg", "Default", "isnet-anime", 1, 0.5, 0.25]],
|
75 |
enable_queue=True
|
76 |
).launch()
|