Caroline Mai Chan
commited on
Commit
·
4f625a2
1
Parent(s):
5b29d56
more debugging 4
Browse files
app.py
CHANGED
@@ -88,7 +88,7 @@ model.eval()
|
|
88 |
|
89 |
def predict(input_img):
|
90 |
input_img = Image.open(input_img)
|
91 |
-
ratio = input_img.size[1]
|
92 |
input_img = input_img.resize((int(ratio*input_img.size[0]),256), Image.ANTIALIAS)
|
93 |
return input_img
|
94 |
|
|
|
88 |
|
89 |
def predict(input_img):
|
90 |
input_img = Image.open(input_img)
|
91 |
+
ratio = 256.0 / input_img.size[1]
|
92 |
input_img = input_img.resize((int(ratio*input_img.size[0]),256), Image.ANTIALIAS)
|
93 |
return input_img
|
94 |
|