lixiang46
commited on
Commit
•
dbe8337
1
Parent(s):
0f0fc4b
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
|
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 is None or garment_img is None:
|
14 |
return None, None, None, "Empty image"
|
15 |
if randomize_seed:
|
16 |
seed = random.randint(0, MAX_SEED)
|