Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -427,18 +427,22 @@ def comp_combine(inp_ims: list,comp_col,comp_row,resize=False):
|
|
427 |
im_cnt=len(im_box)
|
428 |
cnt=1
|
429 |
for rr in range(rows):
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
|
|
|
|
|
|
|
|
|
|
436 |
cnt+=1
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
v_box.append(col_out)
|
442 |
print(v_box)
|
443 |
v_cnt=1
|
444 |
v_box_cnt=len(v_box)
|
|
|
427 |
im_cnt=len(im_box)
|
428 |
cnt=1
|
429 |
for rr in range(rows):
|
430 |
+
try:
|
431 |
+
print(rr)
|
432 |
+
col_start=[im_box[cnt-1]]
|
433 |
+
for cc in range(cols-1):
|
434 |
+
print(cc)
|
435 |
+
col_out=get_concat_h_cut(col_start[0],im_box[cnt])
|
436 |
+
col_start[0]=col_out
|
437 |
+
cnt+=1
|
438 |
+
#if cnt>=im_cnt:
|
439 |
+
# rr=range(rows)
|
440 |
+
# cc=range(cols)
|
441 |
cnt+=1
|
442 |
+
v_box.append(col_out)
|
443 |
+
except Exception as e:
|
444 |
+
print(e)
|
445 |
+
pass
|
|
|
446 |
print(v_box)
|
447 |
v_cnt=1
|
448 |
v_box_cnt=len(v_box)
|