Adapter commited on
Commit
d4cb576
β€’
1 Parent(s): a3801b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -106,13 +106,13 @@ def run(*args):
106
  ims1 = []
107
  ims2 = []
108
  for idx, (b, im1, im2, cond_weight) in enumerate(zip(*inps)):
109
- # if idx > 1:
110
- if b != 'Nothing' and (im1 is not None or im2 is not None):
111
- if im1 is not None:
112
- h, w, _ = im1.shape
113
- else:
114
- h, w, _ = im2.shape
115
- break
116
  # resize all the images to the same size
117
  for idx, (b, im1, im2, cond_weight) in enumerate(zip(*inps)):
118
  if idx == 0:
 
106
  ims1 = []
107
  ims2 = []
108
  for idx, (b, im1, im2, cond_weight) in enumerate(zip(*inps)):
109
+ if idx > 0:
110
+ if b != 'Nothing' and (im1 is not None or im2 is not None):
111
+ if im1 is not None:
112
+ h, w, _ = im1.shape
113
+ else:
114
+ h, w, _ = im2.shape
115
+ # break
116
  # resize all the images to the same size
117
  for idx, (b, im1, im2, cond_weight) in enumerate(zip(*inps)):
118
  if idx == 0: