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