Skip to content

This project demonstrates how to interact with a machine learning model from the command line using the Click python package.

Notifications You must be signed in to change notification settings

MRWilliamsGit/SimpleClick

Repository files navigation

SimpleClick Test

SimpleClick

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.

How To Use:

Step 1: Clone this repo to the development environment of your choice.

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

Setp 2: Install all the dependancies from requirements.txt.

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

Step 3: Run the program

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"

Example Command Line Results

"Example"

References

About

This project demonstrates how to interact with a machine learning model from the command line using the Click python package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published