File size: 524 Bytes
87d3d4d
 
 
 
 
9ea08ea
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---

license: other
license_name: govtech-singapore
license_link: LICENSE
---


# LionGuard

LionGuard is a classifier for detecting unsafe content in the Singapore context. It uses pre-trained BAAI English embeddings and performs classification with a trained Ridge Classification model. 

# Usage

1. Install `transformers` , `onnxruntime` and `huggingface_hub` libraries. 
```

pip install transformers onnxruntime huggingface_hub

```

2. Run inference.
```

python inference.py '["Example text 1"]'

```