Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,8 @@ def preprocessing(image):
|
|
34 |
|
35 |
|
36 |
def imageRotation(image):
|
37 |
-
|
|
|
38 |
return image
|
39 |
|
40 |
|
|
|
34 |
|
35 |
|
36 |
def imageRotation(image):
|
37 |
+
if image.height > image.width:
|
38 |
+
return image.rotate(90, expand=True)
|
39 |
return image
|
40 |
|
41 |
|