Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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}-
|
127 |
-
im_roll.save(f'comb-{uid}-
|
128 |
-
out = f'comb-{uid}-
|
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}-
|
135 |
-
out = f'comb-{uid}-
|
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 |
|