File size: 201 Bytes
10a5730
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
from rembg import remove
import gradio as gr
from PIL import Image

def rembg_run(path, progress=gr.Progress(track_tqdm=True)):
    input = Image.open(path)
    output = remove(input)
    return output