Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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
|