Spaces:
Runtime error
Runtime error
Commit
Β·
d64cb62
1
Parent(s):
c9a8878
Update app.py
Browse files
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)
|