Commit
·
e231ab1
1
Parent(s):
524f8ab
28. Sept. 2024, 17:52
Browse files
app.py
CHANGED
@@ -343,13 +343,13 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
|
|
343 |
lineart_btn_visible = True if tab == "tab_lineart" else False
|
344 |
canny_btn_visible = True if tab == "tab_canny" else False
|
345 |
|
346 |
-
return
|
347 |
|
348 |
run_btn_lineart = gr.Button("Run", visible=False)
|
349 |
run_btn_canny = gr.Button("Run", visible=False)
|
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):
|
|
|
343 |
lineart_btn_visible = True if tab == "tab_lineart" else False
|
344 |
canny_btn_visible = True if tab == "tab_canny" else False
|
345 |
|
346 |
+
return [{"visible": lineart_btn_visible, "__type__": "update"}, {"visible": canny_btn_visible, "__type__": "update"}]
|
347 |
|
348 |
run_btn_lineart = gr.Button("Run", visible=False)
|
349 |
run_btn_canny = gr.Button("Run", visible=False)
|
350 |
|
351 |
all_run_btns = [run_btn_lineart, run_btn_canny]
|
352 |
+
print("all_run_btns:", all_run_btns)
|
353 |
tab_lineart.select(set_inputs("tab_lineart"), inputs=None, outputs=all_run_btns)
|
354 |
|
355 |
with gr.Column(scale=2):
|