jbilcke-hf HF staff commited on
Commit
996f8c3
·
verified ·
1 Parent(s): 017b989

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -110,7 +110,7 @@ class GenerationConfig:
110
  if not ((self.width == MAX_LARGE_SIDE and self.height == MAX_SMALL_SIDE) or
111
  (self.width == MAX_SMALL_SIDE and self.height == MAX_LARGE_SIDE)):
112
  # For other resolutions, ensure total pixels don't exceed max
113
- MAX_TOTAL_PIXELS = (MAX_SMALL_SIDE * MAX_LARGE_SIDE- # or 921600 = 1280 * 720
114
 
115
  # If total pixels exceed maximum, scale down proportionally
116
  total_pixels = self.width * self.height
 
110
  if not ((self.width == MAX_LARGE_SIDE and self.height == MAX_SMALL_SIDE) or
111
  (self.width == MAX_SMALL_SIDE and self.height == MAX_LARGE_SIDE)):
112
  # For other resolutions, ensure total pixels don't exceed max
113
+ MAX_TOTAL_PIXELS = MAX_SMALL_SIDE * MAX_LARGE_SIDE # or 921600 = 1280 * 720
114
 
115
  # If total pixels exceed maximum, scale down proportionally
116
  total_pixels = self.width * self.height