SIGMitch commited on
Commit
a4f6834
·
verified ·
1 Parent(s): d647cdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -61,8 +61,8 @@ def resize_image_dimensions(
61
 
62
  #was_resized = False
63
 
64
- #w = w - w % 8
65
- #h = h - h % 8
66
  #if width <= maximum_dimension and height <= maximum_dimension:
67
  # width = width - (width % 32)
68
  # height = height - (height % 32)
@@ -79,7 +79,7 @@ def resize_image_dimensions(
79
  # new_width = new_width - (new_width % 32)
80
  # new_height = new_height - (new_height % 32)
81
 
82
- return w, h
83
 
84
 
85
  @spaces.GPU(duration=80)
 
61
 
62
  #was_resized = False
63
 
64
+ w = w - w % 8
65
+ h = h - h % 8
66
  #if width <= maximum_dimension and height <= maximum_dimension:
67
  # width = width - (width % 32)
68
  # height = height - (height % 32)
 
79
  # new_width = new_width - (new_width % 32)
80
  # new_height = new_height - (new_height % 32)
81
 
82
+ return int(w), int(h)
83
 
84
 
85
  @spaces.GPU(duration=80)