tomaseo2022 commited on
Commit
d64cb62
Β·
1 Parent(s): c9a8878

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -13,6 +13,10 @@ from io import BytesIO
13
  import rembg
14
  from rembg import remove
15
 
 
 
 
 
16
 
17
  def inference(img):
18
  img = Image.open(img)
 
13
  import rembg
14
  from rembg import remove
15
 
16
+ def inference(img):
17
+ input_img = cv2.imread(img)
18
+ output = remove(input_img[:, :, [2,1,0]])
19
+ return output
20
 
21
  def inference(img):
22
  img = Image.open(img)