OriLib commited on
Commit
1605763
1 Parent(s): 1052d9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -55,7 +55,8 @@ def process(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)
 
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)