          if self.command == "train":
              self.tk_vars.is_training.set(True)
          print("Loading...")
  
          self.statusbar.message.set(f"Executing - {self.command}.py")
          mode = "indeterminate" if self.command in ("effmpeg", "train") else "determinate"
          self.statusbar.start(mode)
  
          args = self.build_args(category)
          self.tk_vars.display.set(self.command)
          logger.debug("Prepared for execution")
          return args
 
</s> remove         args = self.build_args(category)
        self.tk_vars.display.set(self.command)
 </s> add         args = self._build_args(category)
        self._tk_vars.display.set(self._command) </s> remove         self.tk_vars.running_task.set(True)
        self.tk_vars.console_clear.set(True)
        if self.command == "train":
            self.tk_vars.is_training.set(True)
 </s> add         assert self._command is not None
        self._tk_vars.running_task.set(True)
        self._tk_vars.console_clear.set(True)
        if self._command == "train":
            self._tk_vars.is_training.set(True) </s> remove     def build_args(self, category, command=None, generate=False):
 </s> add     def _build_args(self,
                    category: str,
                    command: str | None = None,
                    generate: bool = False) -> list[str]: </s> remove         command = self.command if not command else command
 </s> add         command = self._command if not command else command
        assert command is not None </s> remove         if self.tk_vars.running_task.get():
            self.task.terminate()
 </s> add         if self._tk_vars.running_task.get():
            self._task.terminate()
        self._statusbar.message.set(f"Executing - {self._command}.py")
        mode = "indeterminate" if self._command in ("effmpeg", "train") else "determinate"
        self._statusbar.start(mode)
          if self.command == "train":
              self.tk_vars.is_training.set(True)
          print("Loading...")
  
        self._statusbar.message.set(f"Executing - {self._command}.py")
        mode = "indeterminate" if self._command in ("effmpeg", "train") else "determinate"
        self._statusbar.start(mode)
        self._statusbar.message.set(f"Executing - {self._command}.py")
        mode = "indeterminate" if self._command in ("effmpeg", "train") else "determinate"
        self._statusbar.start(mode)
        self._statusbar.message.set(f"Executing - {self._command}.py")
        mode = "indeterminate" if self._command in ("effmpeg", "train") else "determinate"
        self._statusbar.start(mode)
  
          args = self.build_args(category)
          self.tk_vars.display.set(self.command)
          logger.debug("Prepared for execution")
          return args
keep keep keep keep replace replace replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py