Omnibus commited on
Commit
947c190
·
verified ·
1 Parent(s): bf2bcdb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -7
app.py CHANGED
@@ -82,13 +82,11 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
82
  except Exception:
83
  mes="<center>Some blocks returned an error"
84
  if out_box:
85
- for i in range(0,len(out_box)-2):
86
- if i == 0:
87
- im_roll = get_concat_v_cut(f'{out_box[i]}',f'{out_box[i+1]}')
88
- im_roll.save(f'comb-{uid}-tmp.png')
89
- else:
90
- im_roll = get_concat_v_cut(f'comb-{uid}-tmp.png',f'{out_box[i+1]}')
91
- im_roll.save(f'comb-{uid}-tmp.png')
92
 
93
 
94
  if check_h:
 
82
  except Exception:
83
  mes="<center>Some blocks returned an error"
84
  if out_box:
85
+ im_roll = get_concat_v_cut(f'{out_box[0]}',f'{out_box[1]}')
86
+ im_roll.save(f'comb-{uid}-tmp.png')
87
+ for i in range(1,len(out_box)-2):
88
+ im_roll = get_concat_v_cut(f'comb-{uid}-tmp.png',f'{out_box[i+1]}')
89
+ im_roll.save(f'comb-{uid}-tmp.png')
 
 
90
 
91
 
92
  if check_h: