Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,7 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
image = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512))
|
110 |
result = gr.Image(label="Result", show_label=False)
|
111 |
|
112 |
-
|
113 |
|
114 |
with gr.Accordion("Advanced Settings", open=False):
|
115 |
|
@@ -166,7 +166,7 @@ with gr.Blocks(css=css) as demo:
|
|
166 |
|
167 |
run_button.click(lambda x: None, inputs=None, outputs=result).then(
|
168 |
fn=infer,
|
169 |
-
inputs=[
|
170 |
outputs=[result]
|
171 |
)
|
172 |
|
|
|
109 |
image = gr.ImageEditor(type="pil", image_mode="L", crop_size=(512, 512))
|
110 |
result = gr.Image(label="Result", show_label=False)
|
111 |
|
112 |
+
use_image = gr.Checkbox(label="Use image", value=True)
|
113 |
|
114 |
with gr.Accordion("Advanced Settings", open=False):
|
115 |
|
|
|
166 |
|
167 |
run_button.click(lambda x: None, inputs=None, outputs=result).then(
|
168 |
fn=infer,
|
169 |
+
inputs=[use_image, image, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
|
170 |
outputs=[result]
|
171 |
)
|
172 |
|