* update links to the documentation
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ license: mit
|
|
| 11 |
Here's a simple app, written in pure Python, to create a demo website for LLM Guard.
|
| 12 |
The app is based on the [streamlit](https://streamlit.io/) package.
|
| 13 |
|
| 14 |
-
A live version can be found here: https://huggingface.co/spaces/
|
| 15 |
|
| 16 |
## Requirements
|
| 17 |
|
|
|
|
| 11 |
Here's a simple app, written in pure Python, to create a demo website for LLM Guard.
|
| 12 |
The app is based on the [streamlit](https://streamlit.io/) package.
|
| 13 |
|
| 14 |
+
A live version can be found here: https://huggingface.co/spaces/ProtectAI/llm-guard-playground
|
| 15 |
|
| 16 |
## Requirements
|
| 17 |
|
app.py
CHANGED
|
@@ -30,7 +30,7 @@ logger.setLevel(logging.INFO)
|
|
| 30 |
# Sidebar
|
| 31 |
st.sidebar.header(
|
| 32 |
"""
|
| 33 |
-
Scanning prompt and output using [LLM Guard](https://
|
| 34 |
"""
|
| 35 |
)
|
| 36 |
|
|
@@ -52,7 +52,7 @@ st.subheader("Guard Prompt" if scanner_type == PROMPT else "Guard Output")
|
|
| 52 |
with st.expander("About", expanded=False):
|
| 53 |
st.info(
|
| 54 |
"""LLM-Guard is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).
|
| 55 |
-
\n\n[Code](https://github.com/
|
| 56 |
[Documentation](https://llm-guard.com/)"""
|
| 57 |
)
|
| 58 |
|
|
|
|
| 30 |
# Sidebar
|
| 31 |
st.sidebar.header(
|
| 32 |
"""
|
| 33 |
+
Scanning prompt and output using [LLM Guard](https://llm-guard.com/)
|
| 34 |
"""
|
| 35 |
)
|
| 36 |
|
|
|
|
| 52 |
with st.expander("About", expanded=False):
|
| 53 |
st.info(
|
| 54 |
"""LLM-Guard is a comprehensive tool designed to fortify the security of Large Language Models (LLMs).
|
| 55 |
+
\n\n[Code](https://github.com/protectai/llm-guard) |
|
| 56 |
[Documentation](https://llm-guard.com/)"""
|
| 57 |
)
|
| 58 |
|
output.py
CHANGED
|
@@ -44,7 +44,7 @@ def init_settings() -> (List, Dict):
|
|
| 44 |
"Select scanners",
|
| 45 |
options=all_scanners,
|
| 46 |
default=all_scanners,
|
| 47 |
-
help="The list can be found here: https://
|
| 48 |
)
|
| 49 |
|
| 50 |
settings = {}
|
|
|
|
| 44 |
"Select scanners",
|
| 45 |
options=all_scanners,
|
| 46 |
default=all_scanners,
|
| 47 |
+
help="The list can be found here: https://llm-guard.com/output_scanners/bias/",
|
| 48 |
)
|
| 49 |
|
| 50 |
settings = {}
|
prompt.py
CHANGED
|
@@ -35,7 +35,7 @@ def init_settings() -> (List, Dict):
|
|
| 35 |
"Select scanners",
|
| 36 |
options=all_scanners,
|
| 37 |
default=all_scanners,
|
| 38 |
-
help="The list can be found here: https://
|
| 39 |
)
|
| 40 |
|
| 41 |
settings = {}
|
|
|
|
| 35 |
"Select scanners",
|
| 36 |
options=all_scanners,
|
| 37 |
default=all_scanners,
|
| 38 |
+
help="The list can be found here: https://llm-guard.com/input_scanners/anonymize/",
|
| 39 |
)
|
| 40 |
|
| 41 |
settings = {}
|