import gradio as gr from rembg import remove def segment(image): return remove(image) title = "Vanish Background" description = "Remove background for any image , To use it, simply upload your image and wait. Read more at the link below of official documentation." article = "
" gr.Interface(fn=segment, inputs="image", outputs="image").launch()