Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,8 @@ def process(image):
|
|
55 |
|
56 |
# prepare input
|
57 |
print(type(image))
|
58 |
-
|
|
|
59 |
w,h = orig_im_size = orig_image.size
|
60 |
image = resize_image(orig_image)
|
61 |
im_np = np.array(image)
|
|
|
55 |
|
56 |
# prepare input
|
57 |
print(type(image))
|
58 |
+
print(image.shape)
|
59 |
+
orig_image = Image.fromarray(image)
|
60 |
w,h = orig_im_size = orig_image.size
|
61 |
image = resize_image(orig_image)
|
62 |
im_np = np.array(image)
|