Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -76,8 +76,8 @@ st.set_page_config(page_title="Presidio demo (English)", layout="wide")
|
|
76 |
|
77 |
# Side bar
|
78 |
st.sidebar.markdown(
|
79 |
-
|
80 |
-
Detect and anonymize PII
|
81 |
"""
|
82 |
)
|
83 |
|
@@ -95,7 +95,7 @@ st_return_decision_process = st.sidebar.checkbox("Add analysis explanations in j
|
|
95 |
|
96 |
st.sidebar.info(
|
97 |
"Privy is an open source framework for synthetic data generation in protocol trace formats (json, sql, html etc). Presidio is an open source framework for PII detection and anonymization. "
|
98 |
-
"For more info visit [
|
99 |
)
|
100 |
|
101 |
|
@@ -108,9 +108,9 @@ analyzer_load_state.empty()
|
|
108 |
st_text = st.text_area(
|
109 |
label="Type in some text",
|
110 |
value=
|
111 |
-
"
|
112 |
-
"\n"
|
113 |
-
"
|
114 |
height=200,
|
115 |
)
|
116 |
|
|
|
76 |
|
77 |
# Side bar
|
78 |
st.sidebar.markdown(
|
79 |
+
"""
|
80 |
+
Detect and anonymize PII in text using an [NLP model](https://huggingface.co/beki/en_spacy_pii_distilbert) trained on protocol trace data generated by [privy](https://github.com/pixie-io/pixie/tree/main/src/datagen/pii/privy) and rule-based classifiers from [presidio](https://aka.ms/presidio).
|
81 |
"""
|
82 |
)
|
83 |
|
|
|
95 |
|
96 |
st.sidebar.info(
|
97 |
"Privy is an open source framework for synthetic data generation in protocol trace formats (json, sql, html etc). Presidio is an open source framework for PII detection and anonymization. "
|
98 |
+
"For more info visit [privy](https://github.com/pixie-io/pixie/tree/main/src/datagen/pii/privy) and [aka.ms/presidio](https://aka.ms/presidio)"
|
99 |
)
|
100 |
|
101 |
|
|
|
108 |
st_text = st.text_area(
|
109 |
label="Type in some text",
|
110 |
value=
|
111 |
+
"SELECT shipping FROM users WHERE shipping = '201 Thayer St Providence RI 02912'"
|
112 |
+
"\n\n"
|
113 |
+
"{user: Willie Porter, ip: 192.168.2.80, email: [email protected]}",
|
114 |
height=200,
|
115 |
)
|
116 |
|