Spaces:
Running
on
Zero
Running
on
Zero
Alexander Bagus
commited on
Commit
·
b6c2388
1
Parent(s):
af3cbb6
22
Browse files
app.py
CHANGED
|
@@ -177,10 +177,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 177 |
run_button = gr.Button("Run", variant="primary")
|
| 178 |
with gr.Column():
|
| 179 |
output_image = gr.Image(label="Generated image", show_label=False)
|
| 180 |
-
|
|
|
|
| 181 |
with gr.Accordion("Preprocessor output", open=False):
|
| 182 |
control_image = gr.Image(label="Control image", show_label=False)
|
| 183 |
-
|
| 184 |
|
| 185 |
with gr.Accordion("Advanced Settings", open=False):
|
| 186 |
seed = gr.Slider(
|
|
@@ -248,7 +249,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 248 |
guidance_scale,
|
| 249 |
num_inference_steps,
|
| 250 |
],
|
| 251 |
-
outputs=[output_image, seed],
|
| 252 |
)
|
| 253 |
# gr.on(
|
| 254 |
# triggers=[run_button.click, prompt.submit],
|
|
|
|
| 177 |
run_button = gr.Button("Run", variant="primary")
|
| 178 |
with gr.Column():
|
| 179 |
output_image = gr.Image(label="Generated image", show_label=False)
|
| 180 |
+
polished_prompt = gr.Textbox(label="Polished prompt", interactive=False)
|
| 181 |
+
|
| 182 |
with gr.Accordion("Preprocessor output", open=False):
|
| 183 |
control_image = gr.Image(label="Control image", show_label=False)
|
| 184 |
+
|
| 185 |
|
| 186 |
with gr.Accordion("Advanced Settings", open=False):
|
| 187 |
seed = gr.Slider(
|
|
|
|
| 249 |
guidance_scale,
|
| 250 |
num_inference_steps,
|
| 251 |
],
|
| 252 |
+
outputs=[output_image, seed, control_image],
|
| 253 |
)
|
| 254 |
# gr.on(
|
| 255 |
# triggers=[run_button.click, prompt.submit],
|