faces.py
def validate_files():
    """
    Check if files created from faces_train.py script
    """
    recognizer_f = glob("./recognizers/*.yml")
    pickle_f = glob("./pickles/*.pickle")
    if not len(recognizer_f) or not len(pickle_f):
        raise Exception("Missing files for recognizing people. Please create a dataset and run faces_train.py first.")

    Check if files created from faces_train.py script
    
Check if files created from faces_train.py script
Check if files created from faces_train . py script
def validate_files():
    recognizer_f = glob("./recognizers/*.yml")
    pickle_f = glob("./pickles/*.pickle")
    if not len(recognizer_f) or not len(pickle_f):
        raise Exception("Missing files for recognizing people. Please create a dataset and run faces_train.py first.")
def validate_files ( ) : recognizer_f = glob ( "./recognizers/*.yml" ) pickle_f = glob ( "./pickles/*.pickle" ) if not len ( recognizer_f ) or not len ( pickle_f ) : raise Exception ( "Missing files for recognizing people. Please create a dataset and run faces_train.py first." )
Check if files created from faces_train.py script
Check if files created from faces_train . py script
"""
    Check if files created from faces_train.py script
    """