el-el-san commited on
Commit
27b38b5
·
verified ·
1 Parent(s): 7c0e7d7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- gradio_en = True
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=[gradio_en, image, prompt, negative_prompt, seed, randomize_seed, width, height, guidance_scale, num_inference_steps],
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