CoolFace
Apppublic

JayRaghav/Image_segmentation

sourceHugging Faceopenrailupdated 1y agoView on Hugging Face
21likes
app.py13 linesDownload Raw Back to root
1import gradio as gr2from rembg import remove3 4title = "Vanish Background"5description = "Remove background for any image , To use it, simply upload your image and wait. Read more at the link below of official documentation."6article = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"7  8def segment(image):9     return remove(image)10     11demo = gr.Interface(fn=segment, inputs="image", outputs="image", title=title, description=description, article=article)12demo.queue(concurrency_count=3)13demo.launch()