Open Nevysha opened 1 year ago
@Nevysha yes but not exactly
it's not opting out from the default system
but it's opting out for the entire ui-config.json
as they're tied together together
if you can set the attribute to do_not_save_to_config
to True
this will exclude the element from ui-config.json
example
enable = gr.Checkbox(label='your label', value=False)
enable.do_not_save_to_config = True
# or
setattr(enable, "do_not_save_to_config", True)
example of someone actually using this in an extension https://github.com/wcde/sd-webui-refiner/blob/0ad12e75339e857c7539bbbdf6a125f1cdd6fa96/scripts/refiner.py#L85-L95
Is there an existing issue for this?
What would your feature do ?
Is there a way to opt out from the system that save the UI state of gradio elem when making an extension ?
Regards
Proposed workflow
Additional information
No response