syedfaisalabrar commited on
Commit
f520e17
·
verified ·
1 Parent(s): f8bd8ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,7 +34,8 @@ def preprocessing(image):
34
 
35
 
36
  def imageRotation(image):
37
- """Dummy function for image rotation."""
 
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