Update README.md
Browse files
README.md
CHANGED
@@ -21,6 +21,8 @@ tags:
|
|
21 |
|
22 |
## Usage
|
23 |
|
|
|
|
|
24 |
Loading the model requires the [🤗 Optimum](https://huggingface.co/docs/optimum/index) library installed.
|
25 |
|
26 |
```python
|
@@ -38,4 +40,15 @@ classifier = pipeline(
|
|
38 |
|
39 |
classifier_output = classifier("Your text to analyze for bias.")
|
40 |
score = (classifier_output[0]["score"] if classifier_output[0]["label"] == "BIASED" else 1 - classifier_output[0]["score"])
|
41 |
-
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
21 |
|
22 |
## Usage
|
23 |
|
24 |
+
### Optimum
|
25 |
+
|
26 |
Loading the model requires the [🤗 Optimum](https://huggingface.co/docs/optimum/index) library installed.
|
27 |
|
28 |
```python
|
|
|
40 |
|
41 |
classifier_output = classifier("Your text to analyze for bias.")
|
42 |
score = (classifier_output[0]["score"] if classifier_output[0]["label"] == "BIASED" else 1 - classifier_output[0]["score"])
|
43 |
+
```
|
44 |
+
|
45 |
+
### LLM Guard
|
46 |
+
|
47 |
+
[Bias scanner](https://llm-guard.com/output_scanners/bias/)
|
48 |
+
|
49 |
+
## Community
|
50 |
+
|
51 |
+
Join our Slack to give us feedback, connect with the maintainers and fellow users, ask questions,
|
52 |
+
or engage in discussions about LLM security!
|
53 |
+
|
54 |
+
<a href="https://join.slack.com/t/laiyerai/shared_invite/zt-28jv3ci39-sVxXrLs3rQdaN3mIl9IT~w"><img src="https://github.com/laiyer-ai/llm-guard/blob/main/docs/assets/join-our-slack-community.png?raw=true" width="200"></a>
|