The demo shows how to use predictions produced by the Toxicity classifier.
cd into the demo folder:
cd toxicity/demo
Install dependencies and prepare the build directory:
yarn
To watch files for changes, and launch a dev server:
yarn watch
cd into the toxicity folder:
cd toxicity
Install dependencies:
yarn
Build and publish toxicity locally:
yarn publish-local
Cd into the demo and install dependencies:
cd demo
yarn
Link the local toxicity to the demo:
yarn link-local
Start the dev demo server:
yarn watch
To get future updates from the toxicity source code:
# cd up into the toxicity directory
cd ../
yarn publish-local