rphrp1985 commited on
Commit
c60d79d
·
verified ·
1 Parent(s): 189e6a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -152,6 +152,7 @@ def respond(
152
 
153
  try:
154
  image= json_obj['image']
 
155
  image = load_img(image, output_type="pil")
156
  image = image.convert("RGB")
157
 
@@ -165,6 +166,7 @@ def respond(
165
  pred_pil = transforms.ToPILImage()(pred)
166
  mask = pred_pil.resize(image_size)
167
  image.putalpha(mask)
 
168
  return convert_image_to_base64(image)
169
 
170
 
 
152
 
153
  try:
154
  image= json_obj['image']
155
+ print('selected bg remover')
156
  image = load_img(image, output_type="pil")
157
  image = image.convert("RGB")
158
 
 
166
  pred_pil = transforms.ToPILImage()(pred)
167
  mask = pred_pil.resize(image_size)
168
  image.putalpha(mask)
169
+ print('remver success')
170
  return convert_image_to_base64(image)
171
 
172