from rembg import remove as rm def rem_bg(input): result=rm(input) return result