Update app.py
Browse files
app.py
CHANGED
@@ -20,10 +20,10 @@ def setup_model(args):
|
|
20 |
|
21 |
return model
|
22 |
|
23 |
-
def main(img
|
24 |
|
25 |
# Checking Image Aspect Ratio
|
26 |
-
load_img = Image.
|
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]
|