Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def prompt_to_layout(user_prompt, top_p, top_k, fpath=None):
|
|
87 |
|
88 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
89 |
|
90 |
-
legend = Image.open(
|
91 |
|
92 |
im = np.array(im)
|
93 |
im[:40, :] = np.array(legend)
|
@@ -112,7 +112,7 @@ def mut_txt2layout(mut_output):
|
|
112 |
colors = [architext_colors[housegan_labels[space]] for space in spaces]
|
113 |
_, im = draw_polygons(geom, colors, fpath=None)
|
114 |
|
115 |
-
legend = Image.open(
|
116 |
|
117 |
im = np.array(im)
|
118 |
im[:40, :] = np.array(legend)
|
|
|
87 |
|
88 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
89 |
|
90 |
+
legend = Image.open("legend.png")
|
91 |
|
92 |
im = np.array(im)
|
93 |
im[:40, :] = np.array(legend)
|
|
|
112 |
colors = [architext_colors[housegan_labels[space]] for space in spaces]
|
113 |
_, im = draw_polygons(geom, colors, fpath=None)
|
114 |
|
115 |
+
legend = Image.open("legend.png")
|
116 |
|
117 |
im = np.array(im)
|
118 |
im[:40, :] = np.array(legend)
|