Spaces:
Paused
Paused
Update app_quant_latent.py
Browse files- app_quant_latent.py +2 -13
app_quant_latent.py
CHANGED
|
@@ -706,18 +706,7 @@ def generate_image_backup(prompt, height, width, steps, seed, guidance_scale=0.0
|
|
| 706 |
# outputs=[final_image, latent_gallery, logs_box]
|
| 707 |
# )
|
| 708 |
|
| 709 |
-
with gr.Blocks(
|
| 710 |
-
#logbox {
|
| 711 |
-
white-space: pre-wrap;
|
| 712 |
-
font-family: monospace;
|
| 713 |
-
background: #0d0d0d;
|
| 714 |
-
color: #00ff9d;
|
| 715 |
-
padding: 15px;
|
| 716 |
-
border-radius: 8px;
|
| 717 |
-
max-height: 600px;
|
| 718 |
-
overflow-y: auto;
|
| 719 |
-
}
|
| 720 |
-
""") as demo:
|
| 721 |
|
| 722 |
gr.Markdown("## π₯ Z-Image Turbo β Output & Logs Viewer")
|
| 723 |
|
|
@@ -737,7 +726,7 @@ with gr.Blocks(css="""
|
|
| 737 |
latent_gallery = gr.Gallery(label="Latent Steps", columns=4, height=256, preview=True)
|
| 738 |
|
| 739 |
with gr.TabItem("Logs"):
|
| 740 |
-
logs_box = gr.HTML(value=f"<pre
|
| 741 |
|
| 742 |
def run_and_update_logs(prompt, height, width, steps, seed):
|
| 743 |
img, gallery, logs = generate_image(prompt, height, width, steps, seed)
|
|
|
|
| 706 |
# outputs=[final_image, latent_gallery, logs_box]
|
| 707 |
# )
|
| 708 |
|
| 709 |
+
with gr.Blocks(title="Z-Image- experiment - dont run")as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 710 |
|
| 711 |
gr.Markdown("## π₯ Z-Image Turbo β Output & Logs Viewer")
|
| 712 |
|
|
|
|
| 726 |
latent_gallery = gr.Gallery(label="Latent Steps", columns=4, height=256, preview=True)
|
| 727 |
|
| 728 |
with gr.TabItem("Logs"):
|
| 729 |
+
logs_box = gr.HTML(value=f"<pre'>{LOGS}</pre>", label="Full Logs")
|
| 730 |
|
| 731 |
def run_and_update_logs(prompt, height, width, steps, seed):
|
| 732 |
img, gallery, logs = generate_image(prompt, height, width, steps, seed)
|