JayRaghav/Image_segmentation
21
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()