Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -30,13 +30,13 @@ def get_concat_h_cut(in1, in2):
|
|
| 30 |
return dst
|
| 31 |
|
| 32 |
|
| 33 |
-
def get_concat_v_cut(
|
| 34 |
-
im1=Image.open(in1)
|
| 35 |
if theme=='dark':
|
| 36 |
color=(31,41,55)
|
| 37 |
if theme=='light':
|
| 38 |
color=(255,255,255)
|
| 39 |
-
dst = Image.new('RGB', (
|
| 40 |
dst.paste(im1, (0, 0))
|
| 41 |
return dst
|
| 42 |
|
|
|
|
| 30 |
return dst
|
| 31 |
|
| 32 |
|
| 33 |
+
def get_concat_v_cut(im1,theme='light'):
|
| 34 |
+
#im1=Image.open(in1)
|
| 35 |
if theme=='dark':
|
| 36 |
color=(31,41,55)
|
| 37 |
if theme=='light':
|
| 38 |
color=(255,255,255)
|
| 39 |
+
dst = Image.new('RGB', (im1.width, im1.height +100),color=color)
|
| 40 |
dst.paste(im1, (0, 0))
|
| 41 |
return dst
|
| 42 |
|