Python code to generate text using a pretrained character-based RNN | Hacker News Reader