THEODOROS commited on
Commit
ee7218f
1 Parent(s): 9c9d80a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
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
- im = np.array(im)
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