Omnibus commited on
Commit
2619c5f
·
verified ·
1 Parent(s): b410a01

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -39,6 +39,7 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
39
  mes_box=[]
40
  out_box=[]
41
  uid=uuid.uuid4()
 
42
  is_url=True
43
  if is_url:
44
  options = webdriver.ChromeOptions()
@@ -90,7 +91,7 @@ def run_script(url: str, height: int, width: int, check_b,check_h):
90
  im_roll.save(f'comb-{uid}-tmp.png')
91
  out = f'comb-{uid}-tmp.png'
92
  else:
93
- out_box[0].save(f'comb-{uid}-tmp.png')
94
  out = f'comb-{uid}-tmp.png'
95
  if check_h:
96
  head_paste = get_concat_v_cut(f'head-{uid}-tmp.png',f'comb-{uid}-tmp.png')
 
39
  mes_box=[]
40
  out_box=[]
41
  uid=uuid.uuid4()
42
+ out=None
43
  is_url=True
44
  if is_url:
45
  options = webdriver.ChromeOptions()
 
91
  im_roll.save(f'comb-{uid}-tmp.png')
92
  out = f'comb-{uid}-tmp.png'
93
  else:
94
+ tmp_im = Image.open(out_box[0]).save(f'comb-{uid}-tmp.png')
95
  out = f'comb-{uid}-tmp.png'
96
  if check_h:
97
  head_paste = get_concat_v_cut(f'head-{uid}-tmp.png',f'comb-{uid}-tmp.png')