Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -149,7 +149,7 @@ def inference(image):
|
|
149 |
mask = predict(net, image_tensor, orig_size, hypar, device)
|
150 |
|
151 |
pil_mask = Image.fromarray(mask).convert('L')
|
152 |
-
im_rgb = Image.open(image).convert("RGB")
|
153 |
imrgba1 = im_rgb.copy()
|
154 |
imrgba2 = remove(imrgba1,210)
|
155 |
|
|
|
149 |
mask = predict(net, image_tensor, orig_size, hypar, device)
|
150 |
|
151 |
pil_mask = Image.fromarray(mask).convert('L')
|
152 |
+
im_rgb = Image.open(get_url_im(image)).convert("RGB")
|
153 |
imrgba1 = im_rgb.copy()
|
154 |
imrgba2 = remove(imrgba1,210)
|
155 |
|