Commit
·
109db19
1
Parent(s):
13f230e
28. Sept. 2024, 17:40
Browse files
README.md
CHANGED
|
@@ -8,8 +8,7 @@ sdk_version: 4.43.0
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: mit
|
| 11 |
-
header: mini
|
| 12 |
short_description: Use ControlNet v1.1 Preprocessors Standalone
|
| 13 |
---
|
| 14 |
|
| 15 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: true
|
| 10 |
license: mit
|
|
|
|
| 11 |
short_description: Use ControlNet v1.1 Preprocessors Standalone
|
| 12 |
---
|
| 13 |
|
| 14 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -350,7 +350,7 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
|
|
| 350 |
|
| 351 |
all_run_btns = [run_btn_lineart, run_btn_canny]
|
| 352 |
|
| 353 |
-
tab_lineart.select(set_inputs("tab_lineart"), None, all_run_btns)
|
| 354 |
|
| 355 |
with gr.Column(scale=2):
|
| 356 |
gallery = gr.Gallery(label="Generated images", show_label=False, interactive=False, format="png", elem_id="output_gallery", elem_classes="output-gallery", columns=[3], rows=[2], object_fit="contain", height="auto", type="filepath")
|
|
|
|
| 350 |
|
| 351 |
all_run_btns = [run_btn_lineart, run_btn_canny]
|
| 352 |
|
| 353 |
+
tab_lineart.select(set_inputs("tab_lineart"), inputs=None, outputs=all_run_btns)
|
| 354 |
|
| 355 |
with gr.Column(scale=2):
|
| 356 |
gallery = gr.Gallery(label="Generated images", show_label=False, interactive=False, format="png", elem_id="output_gallery", elem_classes="output-gallery", columns=[3], rows=[2], object_fit="contain", height="auto", type="filepath")
|