Spaces:
Runtime error
Runtime error
File size: 558 Bytes
394cd9b f971fef a882f8c b107ccd a882f8c 7c691bf |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
from rembg import remove
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 = "<p style='text-align: center;'><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
def segment(image):
output = remove(image)
return output
gr.Interface(fn=segment, inputs="image", outputs="image", title=title, description=description, article=article).launch(share=True) |