lixiang46 commited on
Commit
dbe8337
1 Parent(s): 0f0fc4b
Files changed (1) hide show
  1. app.py +1 -1
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.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)
 
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)