Omnibus commited on
Commit
c8857c3
1 Parent(s): 52874c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -29,8 +29,10 @@ grid_wide=10
29
 
30
 
31
  def get_concat_h_cut(in1, in2):
32
- im1=Image.open(in1)
33
- im2=Image.open(in2)
 
 
34
  dst = Image.new('RGB', (im1.width + im2.width,
35
  min(im1.height, im2.height)))
36
  dst.paste(im1, (0, 0))
@@ -39,8 +41,10 @@ def get_concat_h_cut(in1, in2):
39
 
40
 
41
  def get_concat_v_cut(in1, in2):
42
- im1=Image.open(in1)
43
- im2=Image.open(in2)
 
 
44
  dst = Image.new(
45
  'RGB', (min(im1.width, im2.width), im1.height + im2.height))
46
  dst.paste(im1, (0, 0))
 
29
 
30
 
31
  def get_concat_h_cut(in1, in2):
32
+ #im1=Image.open(in1)
33
+ #im2=Image.open(in2)
34
+ im1=in1
35
+ im2=in2
36
  dst = Image.new('RGB', (im1.width + im2.width,
37
  min(im1.height, im2.height)))
38
  dst.paste(im1, (0, 0))
 
41
 
42
 
43
  def get_concat_v_cut(in1, in2):
44
+ #im1=Image.open(in1)
45
+ #im2=Image.open(in2)
46
+ im1=in1
47
+ im2=in2
48
  dst = Image.new(
49
  'RGB', (min(im1.width, im2.width), im1.height + im2.height))
50
  dst.paste(im1, (0, 0))