Spaces:
Paused
Paused
Update app_quant_latent.py
Browse files- app_quant_latent.py +8 -12
app_quant_latent.py
CHANGED
|
@@ -718,20 +718,16 @@ with gr.Blocks(title="Z-Image-Turbo") as demo:
|
|
| 718 |
label="Latent Steps", columns=4, height=256, preview=True
|
| 719 |
)
|
| 720 |
|
| 721 |
-
run_btn.click(
|
| 722 |
-
generate_image,
|
| 723 |
-
inputs=[prompt, height, width, steps, seed],
|
| 724 |
-
outputs=[final_image, latent_gallery, None]
|
| 725 |
-
)
|
| 726 |
-
|
| 727 |
with gr.TabItem("Logs"):
|
| 728 |
logs_box = gr.Textbox(label="All Logs", lines=25)
|
| 729 |
-
|
| 730 |
-
|
| 731 |
-
|
| 732 |
-
|
| 733 |
-
|
| 734 |
-
|
|
|
|
|
|
|
| 735 |
|
| 736 |
|
| 737 |
|
|
|
|
| 718 |
label="Latent Steps", columns=4, height=256, preview=True
|
| 719 |
)
|
| 720 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 721 |
with gr.TabItem("Logs"):
|
| 722 |
logs_box = gr.Textbox(label="All Logs", lines=25)
|
| 723 |
+
|
| 724 |
+
# Wire the button AFTER all components exist
|
| 725 |
+
run_btn.click(
|
| 726 |
+
generate_image,
|
| 727 |
+
inputs=[prompt, height, width, steps, seed],
|
| 728 |
+
outputs=[final_image, latent_gallery, logs_box]
|
| 729 |
+
)
|
| 730 |
+
|
| 731 |
|
| 732 |
|
| 733 |
|