cli/streamingphish/streamingphish/cli.py
def _change_classifier(self, available_classifiers):
        """
        Reach out to the config and change the active classifier.

        Args:
            available_classifiers (list): Classifiers available to use in the DB.
        """
        # If there's only one classifier trained, return to main menu.
        if len(available_classifiers) <= 1:
            return

        # Prompt the user for a classifier name.
        while True:
            classifier_name = input("Please enter the name of the classifier you'd"
                                    " like to activate: ").lower()
            try:
                self._phish_config.active_classifier = classifier_name
                break
            except ValueError as error:
                # Only way this would happen is if they fat-fingered the classifier name.
                tqdm.tqdm.write("[-] An error occurred during activation: {}".format(error))
                continue

        Reach out to the config and change the active classifier.

        Args:
            available_classifiers (list): Classifiers available to use in the DB.
        
Reach out to the config and change the active classifier.
Reach out to the config and change the active classifier .
def _change_classifier(self, available_classifiers):
        if len(available_classifiers) <= 1:
            return
        while True:
            classifier_name = input("Please enter the name of the classifier you'd"
                                    " like to activate: ").lower()
            try:
                self._phish_config.active_classifier = classifier_name
                break
            except ValueError as error:
                tqdm.tqdm.write("[-] An error occurred during activation: {}".format(error))
                continue
def _change_classifier ( self , available_classifiers ) : if len ( available_classifiers ) <= 1 : return while True : classifier_name = input ( "Please enter the name of the classifier you'd" " like to activate: " ) . lower ( ) try : self . _phish_config . active_classifier = classifier_name break except ValueError as error : tqdm . tqdm . write ( "[-] An error occurred during activation: {}" . format ( error ) ) continue
Reach out to the config and change the active classifier.
Reach out to the config and change the active classifier .
"""
        Reach out to the config and change the active classifier.

        Args:
            available_classifiers (list): Classifiers available to use in the DB.
        """ # If there's only one classifier trained, return to main menu. # Prompt the user for a classifier name. # Only way this would happen is if they fat-fingered the classifier name.
self
available_classifiers
Classifiers available to use in the DB.
Classifiers available to use in the DB .