aagoluoglu commited on
Commit
b4db21f
·
verified ·
1 Parent(s): 6fc6444

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -177,7 +177,7 @@ def server(input: Inputs, output: Outputs, session: Session):
177
 
178
  """ Prepare Inputs """
179
  # get input points prompt (grid of points)
180
- array_size = max(image.shape[0], image.shape[1])
181
  input_points = generate_input_points(array_size)
182
 
183
  # prepare image and prompt for the model
 
177
 
178
  """ Prepare Inputs """
179
  # get input points prompt (grid of points)
180
+ array_size = max(image.size)
181
  input_points = generate_input_points(array_size)
182
 
183
  # prepare image and prompt for the model