tomaseo2022 commited on
Commit
2fbb632
Β·
1 Parent(s): 988ed53

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -22,6 +22,10 @@ def inference(img):
22
  result = cv2.drawContours(silhouette, contours, -1, (255, 255, 255), 1)
23
  output = remove_background(result)
24
  return output
 
 
 
 
25
 
26
 
27
  gr.Interface(
 
22
  result = cv2.drawContours(silhouette, contours, -1, (255, 255, 255), 1)
23
  output = remove_background(result)
24
  return output
25
+
26
+ def remove_background(result):
27
+ output = remove(result)
28
+ return output
29
 
30
 
31
  gr.Interface(