Spaces:
Build error
Build error
fix scrolling hopefully
Browse files
app.py
CHANGED
|
@@ -87,7 +87,7 @@ def prompt_to_layout(user_prompt, 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)
|
|
@@ -145,7 +145,7 @@ custom_css="""
|
|
| 145 |
.gradio_page {
|
| 146 |
display: flex;
|
| 147 |
width: 100vw;
|
| 148 |
-
min-height:
|
| 149 |
flex-direction: column;
|
| 150 |
justify-content: center;
|
| 151 |
align-items: center;
|
|
|
|
| 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)
|
|
|
|
| 145 |
.gradio_page {
|
| 146 |
display: flex;
|
| 147 |
width: 100vw;
|
| 148 |
+
min-height: 200vh;
|
| 149 |
flex-direction: column;
|
| 150 |
justify-content: center;
|
| 151 |
align-items: center;
|