diego2554 commited on
Commit
dc60c06
1 Parent(s): 7707e77

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -62,15 +62,15 @@ gr.Interface(
62
  default="isnet-general-use",
63
  label="Models"
64
  ),
65
- gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, 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.5, 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", 0.5, 0.5, 0.5], ["girl.jpg", "Default", "u2net", 0.5, 0.5, 0.5], ["anime-girl.jpg", "Default", "isnet-anime", 0.5, 0.5, 0.5]],
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()