          self.tk_vars.display.set(self.command)
          logger.debug("Prepared for execution")
          return args
  
      def build_args(self, category, command=None, generate=False):
          """ Build the faceswap command and arguments list.
  
          If training, pass the model folder and name to the training
          :class:`lib.gui.analysis.Session` for the GUI.
          """
 
</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     def _get_training_session_info(self, cli_option):
 </s> add     def _get_training_session_info(self, cli_option: list[str]) -> None: </s> remove         category, command = self.tk_vars.generate_command.get().split(",")
        args = self.build_args(category, command=command, generate=True)
        self.tk_vars.console_clear.set(True)
        logger.debug(" ".join(args))
        print(" ".join(args))
        self.tk_vars.generate_command.set("")

    def prepare(self, category):
        """ Prepare the environment for execution """
 </s> add         category, command = self._tk_vars.generate_command.get().split(",")
        fs_args = self._build_args(category, command=command, generate=True)
        self._tk_vars.console_clear.set(True)
        logger.debug(" ".join(fs_args))
        print(" ".join(fs_args))
        self._tk_vars.generate_command.set("")

    def _prepare(self, category: T.Literal["faceswap", "tools"]) -> list[str]:
        """ Prepare the environment for execution, Sets the 'running task' and 'console clear'
        global tkinter variables. If training, sets the 'is training' variable

        Parameters
        ----------
        category: str, ["faceswap", "tools"]
            The script that is executing the command

        Returns
        -------
        list[str]
            The command line arguments to execute for the faceswap job
        """ </s> remove         cli_option: list
 </s> add         cli_option: list[str]
    def _build_args(self,
                    category: str,
                    command: str | None = None,
                    generate: bool = False) -> list[str]:
          self.tk_vars.display.set(self.command)
          logger.debug("Prepared for execution")
          return args
  
    def _build_args(self,
                    category: str,
                    command: str | None = None,
                    generate: bool = False) -> list[str]:
          """ Build the faceswap command and arguments list.
  
          If training, pass the model folder and name to the training
          :class:`lib.gui.analysis.Session` for the GUI.
          """
keep keep keep keep replace keep keep keep keep keep
 bugfix: GUI force stdout/stderr reading to utf-8 
lib/gui/wrapper.py