tonyassi commited on
Commit
8993d92
·
1 Parent(s): 71c7d66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from PIL import Image, ImageOps
6
  segformer_b2_clothes_pipe = pipeline("image-segmentation", model="mattmdjaga/segformer_b2_clothes")
7
 
8
  def segformer_b2_clothes(img):
9
- result = segmentation_pipe(img)
10
  mask = result[0]['mask'].convert('L')
11
  mask = ImageOps.invert(mask)
12
  img.putalpha(mask)
 
6
  segformer_b2_clothes_pipe = pipeline("image-segmentation", model="mattmdjaga/segformer_b2_clothes")
7
 
8
  def segformer_b2_clothes(img):
9
+ result = segformer_b2_clothes_pipe(img)
10
  mask = result[0]['mask'].convert('L')
11
  mask = ImageOps.invert(mask)
12
  img.putalpha(mask)