Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,12 +124,10 @@ def prompt_to_layout(user_prompt, intensity, fpath=None):
|
|
| 124 |
html = '<img class="labels" src="images/labels.png" />'
|
| 125 |
|
| 126 |
legend = Image.open("labels.png")
|
|
|
|
|
|
|
| 127 |
|
| 128 |
-
|
| 129 |
-
im[:40, :] = np.array(legend)
|
| 130 |
-
im = Image.fromarray(im)
|
| 131 |
-
|
| 132 |
-
return im
|
| 133 |
|
| 134 |
|
| 135 |
# Gradio App
|
|
|
|
| 124 |
html = '<img class="labels" src="images/labels.png" />'
|
| 125 |
|
| 126 |
legend = Image.open("labels.png")
|
| 127 |
+
imgs_comb = np.vstack([legend, im])
|
| 128 |
+
imgs_comb = Image.fromarray(imgs_comb)
|
| 129 |
|
| 130 |
+
return imgs_comb
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
|
| 132 |
|
| 133 |
# Gradio App
|