Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -856,7 +856,7 @@ def draw_and_pad(polygons_inch, scaling_factor, boundary_polygon, padding=50,
|
|
| 856 |
pts.append([px, py])
|
| 857 |
all_x.append(px)
|
| 858 |
all_y.append(py)
|
| 859 |
-
pixel_polys.append(np.array(pts, dtype=np.
|
| 860 |
|
| 861 |
# 2) Compute the basic canvas size from the polygon bounds.
|
| 862 |
min_x, max_x = min(all_x), max(all_x)
|
|
|
|
| 856 |
pts.append([px, py])
|
| 857 |
all_x.append(px)
|
| 858 |
all_y.append(py)
|
| 859 |
+
pixel_polys.append(np.array(pts, dtype=np.int8))
|
| 860 |
|
| 861 |
# 2) Compute the basic canvas size from the polygon bounds.
|
| 862 |
min_x, max_x = min(all_x), max(all_x)
|