File size: 277 Bytes
bf3c7a8 98857bd bf3c7a8 0afeac4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
from rembg import remove
import gradio as gr
def remove_bg(input_image):
output = remove(input_image)
return output
demo = gr.Interface(
remove_bg,
gr.Image(type="pil"),
"image",
title="Remove Image BG",
)
if __name__ == "__main__":
demo.launch() |