doevent commited on
Commit
3d103de
1 Parent(s): 09a79cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,10 +20,10 @@ def setup_model(args):
20
 
21
  return model
22
 
23
- def main(img: Image):
24
 
25
  # Checking Image Aspect Ratio
26
- load_img = Image.fromarray(img)
27
  #image size
28
  ratio_width = load_img.size[0]
29
  ratio_height = load_img.size[1]
 
20
 
21
  return model
22
 
23
+ def main(img):
24
 
25
  # Checking Image Aspect Ratio
26
+ load_img = Image.open(img)
27
  #image size
28
  ratio_width = load_img.size[0]
29
  ratio_height = load_img.size[1]