Omnibus commited on
Commit
982460d
1 Parent(s): b9b9cab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -75,6 +75,8 @@ def run_dif_color(out_prompt,im_path,model_drop,tint,im_height,im_width):
75
  p_seed=""
76
  out_box=[]
77
  out_html=""
 
 
78
  #for i,ea in enumerate(im_path.root):
79
  cnt = 0
80
  for hh in range(int(im_height/grid_wide)):
@@ -112,7 +114,7 @@ def run_dif_color(out_prompt,im_path,model_drop,tint,im_height,im_width):
112
  im_roll = get_concat_v_cut(f'{out_box[0]}',f'{out_box[1]}')
113
  im_roll.save(f'comb-{uid}-tmp.png')
114
  for i in range(2,len(out_box)):
115
- im_roll = get_concat_v_cut(f'comb-{uid}-tmp.png',f'{out_box[i]}')
116
  im_roll.save(f'comb-{uid}-tmp.png')
117
  out = f'comb-{uid}-tmp.png'
118
  else:
 
75
  p_seed=""
76
  out_box=[]
77
  out_html=""
78
+ im_height=int(im_height)
79
+ im_width=int(im_width)
80
  #for i,ea in enumerate(im_path.root):
81
  cnt = 0
82
  for hh in range(int(im_height/grid_wide)):
 
114
  im_roll = get_concat_v_cut(f'{out_box[0]}',f'{out_box[1]}')
115
  im_roll.save(f'comb-{uid}-tmp.png')
116
  for i in range(2,len(out_box)):
117
+ im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'{out_box[i]}')
118
  im_roll.save(f'comb-{uid}-tmp.png')
119
  out = f'comb-{uid}-tmp.png'
120
  else: