Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -40,8 +40,8 @@ def get_concat_h_cut(in1, in2, adj_h):
|
|
40 |
#im1=in1
|
41 |
#im2=in2
|
42 |
dst = Image.new('RGB', (im1.width + im2.width, min(im1.height, im2.height)))
|
43 |
-
dst.paste(im1, (0, int(adj_h)))
|
44 |
-
dst.paste(im2, (im1.width, int(adj_h)))
|
45 |
return dst
|
46 |
|
47 |
|
@@ -139,7 +139,7 @@ def run_dif_color(out_prompt,im_path,model_drop,tint,im_height,im_width):
|
|
139 |
pass
|
140 |
|
141 |
cnt+=1
|
142 |
-
|
143 |
yield gr.Image(out),out_html
|
144 |
|
145 |
|
|
|
40 |
#im1=in1
|
41 |
#im2=in2
|
42 |
dst = Image.new('RGB', (im1.width + im2.width, min(im1.height, im2.height)))
|
43 |
+
dst.paste(im1, (0, im1.height * int(adj_h)))
|
44 |
+
dst.paste(im2, (im1.width, im1.height * int(adj_h)))
|
45 |
return dst
|
46 |
|
47 |
|
|
|
139 |
pass
|
140 |
|
141 |
cnt+=1
|
142 |
+
adj_h+=1
|
143 |
yield gr.Image(out),out_html
|
144 |
|
145 |
|