# Publish Shell Safety Classifier
Uploads the trained shell safety model to HuggingFace as
`paiml/shell-safety-classifier`.
## Prerequisites
1. Train the model first:
```bash
cargo run --example shell_safety_training -- /tmp/corpus.jsonl
```
2. Set HuggingFace token:
```bash
export HF_TOKEN=hf_xxxxxxxxxxxxx
```
## Run
```bash
cargo run --features hf-hub-integration --example publish_shell_safety -- /tmp/shell-safety-model/
```
## Source
```rust,ignore
{{#include ../../../examples/publish_shell_safety.rs}}
```