Spaces:
Runtime error
Runtime error
File size: 381 Bytes
c9611f7 58332ad | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | import gradio as gr
from rembg import remove
from PIL import Image
def remove_background(image):
output = remove(image)
return output
iface = gr.Interface(
fn=remove_background,
inputs=gr.Image(type="pil"),
outputs=gr.Image(type="pil"),
title="AI Background Remover",
description="Upload an image to instantly remove its background."
)
iface.launch() |