Spaces:
Running
Running
File size: 308 Bytes
0bfc6f3 43247fa 0bfc6f3 43247fa b496bfb 43247fa 0bfc6f3 43247fa 0bfc6f3 43247fa 0bfc6f3 |
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
from PIL import Image
import io
def remove_bg(image):
image = remove(image)
return image
iface = gr.Interface(
fn=remove_bg,
inputs=gr.Image(type="pil"),
outputs=gr.Image(type="pil"),
title="Instant Background Remover"
)
iface.launch()
|