THEODOROS commited on
Commit
585a4cb
·
1 Parent(s): 44646f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(r"F:\Personal\Startup\ArchiText\Media\legend.png")
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(r"F:\Personal\Startup\ArchiText\Media\legend.png")
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)