Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,6 +59,10 @@ with block:
|
|
| 59 |
margin=False,
|
| 60 |
rounded=(False, True, True, False),
|
| 61 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
gallery = gr.Gallery(
|
| 63 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 64 |
).style(grid=[2], height="auto")
|
|
@@ -91,7 +95,7 @@ with block:
|
|
| 91 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
| 92 |
|
| 93 |
|
| 94 |
-
text_output.change(fn=get_images, inputs=text_output, outputs=sd_output)
|
| 95 |
-
submit_button_text.click(fn=get_images, inputs=
|
| 96 |
|
| 97 |
block.launch()
|
|
|
|
| 59 |
margin=False,
|
| 60 |
rounded=(False, True, True, False),
|
| 61 |
)
|
| 62 |
+
submit_button_text = gr.Button("Quick Convert to Image").style(
|
| 63 |
+
margin=True,
|
| 64 |
+
rounded=(True, True, True, True),
|
| 65 |
+
)
|
| 66 |
gallery = gr.Gallery(
|
| 67 |
label="Generated images", show_label=False, elem_id="gallery"
|
| 68 |
).style(grid=[2], height="auto")
|
|
|
|
| 95 |
sd_output = gr.Gallery().style(grid=2, height="auto")
|
| 96 |
|
| 97 |
|
| 98 |
+
#text_output.change(fn=get_images, inputs=text_output, outputs=sd_output)
|
| 99 |
+
submit_button_text.click(fn=get_images, inputs=text, outputs=sd_output)
|
| 100 |
|
| 101 |
block.launch()
|