Update app.py
Browse files
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 |
-
|
|
|
|
| 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"):
|