Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -115,15 +115,15 @@ def run_dif_color(out_prompt,im_path,model_drop,tint,im_height,im_width):
|
|
115 |
print(f'out_box:: {out_box}')
|
116 |
if out_box:
|
117 |
if len(out_box)>1:
|
118 |
-
im_roll = get_concat_v_cut(f'{out_box[0]}',f'{out_box[1]}')
|
119 |
-
im_roll.save(f'comb-{uid}-tmp.png')
|
120 |
for i in range(2,len(out_box)):
|
121 |
im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'{out_box[i]}')
|
122 |
im_roll.save(f'comb-{uid}-tmp.png')
|
123 |
out = f'comb-{uid}-tmp.png'
|
124 |
else:
|
125 |
-
|
126 |
-
tmp_im = out_box[0]
|
127 |
tmp_im.save(f'comb-{uid}-tmp.png')
|
128 |
out = f'comb-{uid}-tmp.png'
|
129 |
yield out,out_html
|
|
|
115 |
print(f'out_box:: {out_box}')
|
116 |
if out_box:
|
117 |
if len(out_box)>1:
|
118 |
+
#im_roll = get_concat_v_cut(f'{out_box[0]}',f'{out_box[1]}')
|
119 |
+
#im_roll.save(f'comb-{uid}-tmp.png')
|
120 |
for i in range(2,len(out_box)):
|
121 |
im_roll = get_concat_h_cut(f'comb-{uid}-tmp.png',f'{out_box[i]}')
|
122 |
im_roll.save(f'comb-{uid}-tmp.png')
|
123 |
out = f'comb-{uid}-tmp.png'
|
124 |
else:
|
125 |
+
tmp_im = Image.open(out_box[0])
|
126 |
+
#tmp_im = out_box[0]
|
127 |
tmp_im.save(f'comb-{uid}-tmp.png')
|
128 |
out = f'comb-{uid}-tmp.png'
|
129 |
yield out,out_html
|