Spaces:
Sleeping
Sleeping
dhanushreddy29
commited on
Commit
·
afbc44e
1
Parent(s):
8a7a91a
Update app.py
Browse files
app.py
CHANGED
@@ -10,6 +10,7 @@ from PIL import Image
|
|
10 |
|
11 |
|
12 |
def removeBackground(image):
|
|
|
13 |
if not os.path.exists("saved_models"):
|
14 |
os.mkdir("saved_models")
|
15 |
os.mkdir("git")
|
|
|
10 |
|
11 |
|
12 |
def removeBackground(image):
|
13 |
+
image = Image.fromarray(image).convert("RGB")
|
14 |
if not os.path.exists("saved_models"):
|
15 |
os.mkdir("saved_models")
|
16 |
os.mkdir("git")
|