Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
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:
|