Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def process(image):
|
|
55 |
|
56 |
# prepare input
|
57 |
print(type(image))
|
58 |
-
orig_image = image
|
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 |
+
orig_image = Image.from_array(image)
|
59 |
w,h = orig_im_size = orig_image.size
|
60 |
image = resize_image(orig_image)
|
61 |
im_np = np.array(image)
|