This is a simple generative AI program using Tensorflow and Keras to generate random book titles from a user prompt. The model is trained on a dataset of book titles and uses a LSTM neural network to generate new book titles.
py generate_title.py
Enter a phrase to generate a book title: The mystery of
Generated title: The mystery of notting hill house
Depending on your environment:
py -m pip install tensorflow numpy
or
pip3 install tensorflow numpy
Linux requires first creating/activating a virtual environment prior to installing TensorFlow:
python3 -m venv tensorflow
source tensorflow/bin/activate