Sebastiankay commited on
Commit
13f230e
·
1 Parent(s): 6e0cd8e

28. Sept. 2024, 17:05

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -337,12 +337,12 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
337
  high_threshold = gr.Slider(label="high_threshold", minimum=1, maximum=255, value=200, step=1)
338
  resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
339
 
340
- def set_inputs(tab, all_run_btns):
341
  tab = "tab_lineart" if tab is None else tab
342
  # global input_options
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)
 
337
  high_threshold = gr.Slider(label="high_threshold", minimum=1, maximum=255, value=200, step=1)
338
  resolution = gr.Slider(label="resolution", minimum=256, maximum=1024, value=512, step=64)
339
 
340
+ def set_inputs(tab):
341
  tab = "tab_lineart" if tab is None else tab
342
  # global input_options
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)