Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,6 +15,7 @@ def infer(img,option):
|
|
15 |
print(type(img))
|
16 |
print(type(img["image"]))
|
17 |
print(type(img["mask"]))
|
|
|
18 |
img = Image.fromarray(img["image"])
|
19 |
mask = Image.fromarray(img["mask"])
|
20 |
img = ImageOps.contain(img, (700,700))
|
|
|
15 |
print(type(img))
|
16 |
print(type(img["image"]))
|
17 |
print(type(img["mask"]))
|
18 |
+
print(type(Image.fromarray(img["image"]))
|
19 |
img = Image.fromarray(img["image"])
|
20 |
mask = Image.fromarray(img["mask"])
|
21 |
img = ImageOps.contain(img, (700,700))
|