Spaces:
Runtime error
Runtime error
Commit
Β·
2fbb632
1
Parent(s):
988ed53
Update app.py
Browse files
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(
|