This project demonstrates how to interact with a machine learning model from the command line using the Click python package.
The model used is the pretrained GPT-2 model, which generates new text based on text imput.
Note: If you later receive an error with the note: "_pickle.UnpicklingError: invalid load key, 'v'.", this means that you do not have git lfs configured properly. Install it, and pull the repo again with lfs.
git lfs pull
It is best practice to establish a virtual environment first. Use the command line to navigate to the folder containing these files, and then, if your environment supports Makefile:
make all
You can also install directly using pip:
pip install -r requirements.txt
python clickmodel.py
The program will print a welcome message and prompt you to type in any text you wish. To exit the loop, type "hush"
