Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -136,8 +136,8 @@ def inference(image: Image):
|
|
136 |
|
137 |
# Apply Background
|
138 |
bg_color = 0x00C49A
|
139 |
-
w =
|
140 |
-
h =
|
141 |
|
142 |
bg = Image.new("RGB", (w,h), bg_color)
|
143 |
im_colored = Image.new("RGBA", (w,h))
|
|
|
136 |
|
137 |
# Apply Background
|
138 |
bg_color = 0x00C49A
|
139 |
+
w = im_rgba.size[0]
|
140 |
+
h = im_rgba.size[1]
|
141 |
|
142 |
bg = Image.new("RGB", (w,h), bg_color)
|
143 |
im_colored = Image.new("RGBA", (w,h))
|