Spaces:
Runtime error
Runtime error
Tyler Lastovich
commited on
Commit
·
9c92cbb
1
Parent(s):
193f6c0
revert to just image addition
Browse files
app.py
CHANGED
|
@@ -129,7 +129,7 @@ def prompt_to_layout(user_prompt, intensity, fpath=None):
|
|
| 129 |
im[:40, :] = np.array(legend)
|
| 130 |
im = Image.fromarray(im)
|
| 131 |
|
| 132 |
-
return
|
| 133 |
|
| 134 |
|
| 135 |
# Gradio App
|
|
@@ -230,7 +230,7 @@ textbox = gr.inputs.Textbox(placeholder='An apartment with two bedrooms and one
|
|
| 230 |
generated = gr.outputs.Image(label='Generated Layout')
|
| 231 |
|
| 232 |
iface = gr.Interface(fn=prompt_to_layout, inputs=[textbox, creative_slider],
|
| 233 |
-
outputs=[
|
| 234 |
css=custom_css,
|
| 235 |
theme="default",
|
| 236 |
allow_flagging=False,
|
|
|
|
| 129 |
im[:40, :] = np.array(legend)
|
| 130 |
im = Image.fromarray(im)
|
| 131 |
|
| 132 |
+
return im
|
| 133 |
|
| 134 |
|
| 135 |
# Gradio App
|
|
|
|
| 230 |
generated = gr.outputs.Image(label='Generated Layout')
|
| 231 |
|
| 232 |
iface = gr.Interface(fn=prompt_to_layout, inputs=[textbox, creative_slider],
|
| 233 |
+
outputs=[generated],
|
| 234 |
css=custom_css,
|
| 235 |
theme="default",
|
| 236 |
allow_flagging=False,
|