Spaces:
Sleeping
Sleeping
Handle more polygons.
Browse files
app.py
CHANGED
@@ -122,7 +122,10 @@ def prompt_to_layout(user_prompt, intensity, fpath=None):
|
|
122 |
polygons.append([point.split(',') for point in coord])
|
123 |
geom = []
|
124 |
for poly in polygons:
|
125 |
-
|
|
|
|
|
|
|
126 |
geom.append(scaled_poly)
|
127 |
colors = []
|
128 |
for space in spaces:
|
|
|
122 |
polygons.append([point.split(',') for point in coord])
|
123 |
geom = []
|
124 |
for poly in polygons:
|
125 |
+
new_poly = []
|
126 |
+
for point in poly:
|
127 |
+
new_poly.append(list(map(int, point)))
|
128 |
+
scaled_poly = scale(Polygon(new_poly), xfact=2, yfact=2, origin=(0,0))
|
129 |
geom.append(scaled_poly)
|
130 |
colors = []
|
131 |
for space in spaces:
|