mcrlc commited on
Commit
68e5b43
1 Parent(s): 237dd94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -136,8 +136,8 @@ def inference(image: Image):
136
 
137
  # Apply Background
138
  bg_color = 0x00C49A
139
- w = img_rgba.size[0]
140
- h = img_rgba.size[1]
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))