Commit
·
ff0d0ab
1
Parent(s):
3248690
28. Sept. 2024, 16:25
Browse files
app.py
CHANGED
@@ -282,7 +282,7 @@ with gr.Blocks(theme=theme, css=custom_css, js=custom_js, head=custom_head, titl
|
|
282 |
invert = gr.Checkbox(label="Farbe invertieren?", info=invert_toggle_info[0], value=True, elem_classes="toggle-btn")
|
283 |
resolution = gr.Slider(label="Auflösung", minimum=256, maximum=1024, value=512, step=64)
|
284 |
run_btn_lineart = gr.Button("Run")
|
285 |
-
invert.change(lambda x: {"info": invert_toggle_info[0] if x else invert_toggle_info[1], "__type__": "update"}, inputs=
|
286 |
def set_inputs(tab_name):
|
287 |
global input_options
|
288 |
if tab_name == "Lineart":
|
|
|
282 |
invert = gr.Checkbox(label="Farbe invertieren?", info=invert_toggle_info[0], value=True, elem_classes="toggle-btn")
|
283 |
resolution = gr.Slider(label="Auflösung", minimum=256, maximum=1024, value=512, step=64)
|
284 |
run_btn_lineart = gr.Button("Run")
|
285 |
+
invert.change(lambda x: {"info": invert_toggle_info[0] if x else invert_toggle_info[1], "__type__": "update"}, inputs=invert, outputs=invert)
|
286 |
def set_inputs(tab_name):
|
287 |
global input_options
|
288 |
if tab_name == "Lineart":
|