Ran into the following issue: UnicodeDecodeError: 'charmap' codec can't decode byte 0x8f in position 4: character maps to <undefined> Fixed by altering line 25 in textgenrnn.py to indicate the json vocab file is utf-8 encoded: `with open(vocab_path, 'r', encoding='utf8') as json_file:`