web-ui
web-ui copied to clipboard
fix: correctly save and load configs in UI
- Fixed saving UI configs (previously, it would only save the default configs).
- Fixed to correctly set the model name in the UI from the config even when it's a custom one.
def save_current_config(self, *component_values): I think we do not need to input component_values to save_current_config fn and we should use components saved in config_manager, because the value of components may change during using.
@vvincent1234
updated the logic to use the manager's state directly; it should be alright now.