Sebastiankay commited on
Commit
84ba5b3
·
verified ·
1 Parent(s): 38b68da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -437,7 +437,8 @@ with gr.Blocks(theme=theme, css=css) as demo:
437
  # run_button = gr.Button(label="Run")
438
  with gr.Column():
439
  gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
440
- preprocessor_name.insert = lambda: run_button.set_value(preprocessor_name.value)
 
441
  run_button.click(fn=lineart, inputs=[input_image, resolution, preprocessor_name, invert], outputs=[gallery])
442
 
443
  with gr.Tab("InPaint"):
 
437
  # run_button = gr.Button(label="Run")
438
  with gr.Column():
439
  gallery = gr.Gallery(label="Generated images", show_label=False, height="auto")
440
+
441
+ preprocessor_name.input(lambda: run_button.set_value(preprocessor_name.value))
442
  run_button.click(fn=lineart, inputs=[input_image, resolution, preprocessor_name, invert], outputs=[gallery])
443
 
444
  with gr.Tab("InPaint"):