Spaces:
Runtime error
Runtime error
File size: 628 Bytes
28d3595 7af7fa9 28d3595 7af7fa9 5d639cf 7af7fa9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import gradio as gr
from rembg import remove
title = "Remove Background"
description = """
In this space, you can quickly remove background from images.
⚠️ Make sure your image is of good quality and has a clear background!
⚠️ Sometimes the background is not removed correctly, this is normal, because this is just a demo version!
"""
def segment(image):
return remove(image)
demo = gr.Interface(fn=segment, inputs = gr.Image(label="Input Image", interactive=True), outputs = gr.Image(label="Result Image"), title=title, description=description)
demo.queue(concurrency_count=3)
demo.launch(show_api=False) |