Omnibus commited on
Commit
77a7427
1 Parent(s): 3fc45b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -123,16 +123,16 @@ def run_dif_color(out_prompt,im_path,model_drop,tint,im_height,im_width):
123
  #im_roll.save(f'comb-{uid}-tmp.png')
124
  #for i in range(2,len(out_box)):
125
  #im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'{out_box[cnt]}')
126
- im_roll = get_concat_h_cut(f'comb-{uid}-{hh}-tmp.png',f'tmp-{cnt}-{uid}.png',b,hh)
127
- im_roll.save(f'comb-{uid}-{hh}-tmp.png')
128
- out = f'comb-{uid}-{hh}-tmp.png'
129
  yield gr.Image(out),out_html
130
 
131
  else:
132
  tmp_im = Image.open(out_box[0])
133
  #tmp_im = out_box[0]
134
- tmp_im.save(f'comb-{uid}-{hh}-tmp.png')
135
- out = f'comb-{uid}-{hh}-tmp.png'
136
  yield gr.Image(out),out_html
137
 
138
 
 
123
  #im_roll.save(f'comb-{uid}-tmp.png')
124
  #for i in range(2,len(out_box)):
125
  #im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'{out_box[cnt]}')
126
+ im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'tmp-{cnt}-{uid}.png',b,hh)
127
+ im_roll.save(f'comb-{uid}-tmp.png')
128
+ out = f'comb-{uid}-tmp.png'
129
  yield gr.Image(out),out_html
130
 
131
  else:
132
  tmp_im = Image.open(out_box[0])
133
  #tmp_im = out_box[0]
134
+ tmp_im.save(f'comb-{uid}-tmp.png')
135
+ out = f'comb-{uid}-tmp.png'
136
  yield gr.Image(out),out_html
137
 
138