class_docstr: allows saving and restoring default values for gradio components
class_docstr_tok: ["allows","saving","and","restoring","default","values","for","gradio","components"]
code: def __init__(self, filename):
      self.filename = filename
      self.ui_settings = {}
      self.component_mapping = {}
      self.error_loading = False
      self.finalized_ui = False
  
      self.ui_defaults_view = None
      self.ui_defaults_apply = None
      self.ui_defaults_review = None
  
      try:
          if os.path.exists(self.filename):
              self.ui_settings = self.read_from_file()
      except Exception as e:
          self.error_loading = True
          errors.display(e, "loading settings")
  
file_path: stable-diffusion-webui/modules/ui_loadsave.py
imports: import json
  import os
  import gradio
  from modules import errors
  from modules.ui_components import ToolButton, InputAccordion
label_desc: Use image node_id 1 to create a new UiLoadsave object  with example: obj = UiLoadsave(filename)