Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
lixiang46
commited on
Commit
•
0f0fc4b
1
Parent(s):
2398aef
update
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import json
|
|
10 |
|
11 |
|
12 |
def start_tryon(person_img, garment_img, seed, randomize_seed):
|
13 |
-
if person_img == None or garment_img == None:
|
14 |
return None, None, None, "Empty image"
|
15 |
if randomize_seed:
|
16 |
seed = random.randint(0, MAX_SEED)
|
|
|
10 |
|
11 |
|
12 |
def start_tryon(person_img, garment_img, seed, randomize_seed):
|
13 |
+
if person_img.all() == None or garment_img.all() == None:
|
14 |
return None, None, None, "Empty image"
|
15 |
if randomize_seed:
|
16 |
seed = random.randint(0, MAX_SEED)
|