Spaces:
Runtime error
Runtime error
Tyler Lastovich
commited on
Commit
·
2233cc7
1
Parent(s):
23b2e56
Try to make labels
Browse files
app.py
CHANGED
@@ -121,7 +121,10 @@ def prompt_to_layout(user_prompt, intensity, fpath=None):
|
|
121 |
|
122 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
123 |
|
124 |
-
|
|
|
|
|
|
|
125 |
|
126 |
# Gradio App
|
127 |
|
@@ -217,7 +220,7 @@ textbox = gr.inputs.Textbox(placeholder='An apartment with two bedrooms and one
|
|
217 |
generated = gr.outputs.Image(label='Generated Layout')
|
218 |
|
219 |
iface = gr.Interface(fn=prompt_to_layout, inputs=[textbox, creative_slider],
|
220 |
-
outputs=[generated],
|
221 |
css=custom_css,
|
222 |
theme="default",
|
223 |
allow_flagging=False,
|
|
|
121 |
|
122 |
_, im = draw_polygons(geom, colors, fpath=fpath)
|
123 |
|
124 |
+
html = '<img class="labels" src="labels.png" />'
|
125 |
+
|
126 |
+
return im, html
|
127 |
+
|
128 |
|
129 |
# Gradio App
|
130 |
|
|
|
220 |
generated = gr.outputs.Image(label='Generated Layout')
|
221 |
|
222 |
iface = gr.Interface(fn=prompt_to_layout, inputs=[textbox, creative_slider],
|
223 |
+
outputs=["html", generated],
|
224 |
css=custom_css,
|
225 |
theme="default",
|
226 |
allow_flagging=False,
|