Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -1458,7 +1458,7 @@ def handle_generation(h,w,d):
|
|
1458 |
Negative: {neg}
|
1459 |
""")
|
1460 |
|
1461 |
-
|
1462 |
|
1463 |
# entry
|
1464 |
|
@@ -1503,7 +1503,8 @@ if __name__ == "__main__":
|
|
1503 |
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='pil', show_share_button=False)
|
1504 |
upscale_now = gr.Button("Upscale",elem_classes="btn")
|
1505 |
|
1506 |
-
|
|
|
1507 |
fn=handle_generation,
|
1508 |
inputs=[height,width,data],
|
1509 |
outputs=[cover]
|
|
|
1458 |
Negative: {neg}
|
1459 |
""")
|
1460 |
|
1461 |
+
yield pipe_generate_image(pos,neg,h,w)
|
1462 |
|
1463 |
# entry
|
1464 |
|
|
|
1503 |
cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='pil', show_share_button=False)
|
1504 |
upscale_now = gr.Button("Upscale",elem_classes="btn")
|
1505 |
|
1506 |
+
gr.on(
|
1507 |
+
triggers=[run.click],
|
1508 |
fn=handle_generation,
|
1509 |
inputs=[height,width,data],
|
1510 |
outputs=[cover]
|