The main steps to install WhiteLightning are as follows: 1) Make sure Docker is installed on your system; 2) Pull the latest image from Docker Hub; 3) Set the API service key such as OpenRouter; and 4) Run the tool via Docker commands. For example, the command to generate a customer review classification model is:docker run --rm -e OPEN_ROUTER_API_KEY='sk-...' -v '$(pwd)':/app/models ghcr.io/inoxoft/whitelightning:latest python -m text_classifier.agent -p 'Categorize customer reviews as positive, neutral, or negative'
. The whole process takes about 10-15 minutes and the generated model is saved in the specified directory.
This answer comes from the articleWhiteLightning: an open source tool for generating lightweight offline text classification models in one clickThe