Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def prompt_to_layout(user_prompt, top_p, top_k, fpath=None):
|
|
| 83 |
for poly in polygons:
|
| 84 |
geom.append(Polygon(np.array(poly, dtype=int)))
|
| 85 |
|
| 86 |
-
colors = [
|
| 87 |
|
| 88 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
| 89 |
|
|
@@ -109,7 +109,7 @@ def mut_txt2layout(mut_output):
|
|
| 109 |
for poly in polygons:
|
| 110 |
geom.append(Polygon(np.array(poly, dtype=int)))
|
| 111 |
|
| 112 |
-
colors = [
|
| 113 |
_, im = draw_polygons(geom, colors, fpath=None)
|
| 114 |
|
| 115 |
legend = Image.open(r"F:\Personal\Startup\ArchiText\Media\legend.png")
|
|
|
|
| 83 |
for poly in polygons:
|
| 84 |
geom.append(Polygon(np.array(poly, dtype=int)))
|
| 85 |
|
| 86 |
+
colors = [architext_colors[housegan_labels[space]] for space in spaces]
|
| 87 |
|
| 88 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
| 89 |
|
|
|
|
| 109 |
for poly in polygons:
|
| 110 |
geom.append(Polygon(np.array(poly, dtype=int)))
|
| 111 |
|
| 112 |
+
colors = [architext_colors[housegan_labels[space]] for space in spaces]
|
| 113 |
_, im = draw_polygons(geom, colors, fpath=None)
|
| 114 |
|
| 115 |
legend = Image.open(r"F:\Personal\Startup\ArchiText\Media\legend.png")
|