Back to Promptfoo

huggingface/hate-speech-detection (Huggingface Hate Speech Detection)

examples/huggingface/hate-speech-detection/README.md

0.121.9433 B
Original Source

huggingface/hate-speech-detection (Huggingface Hate Speech Detection)

You can run this example with:

bash
npx promptfoo@latest init --example huggingface/hate-speech-detection
cd huggingface/hate-speech-detection

Usage

To get started, set your HF_API_TOKEN environment variable.

Next, edit promptfooconfig.yaml.

Then run:

bash
promptfoo eval

Afterwards, you can view the results by running promptfoo view