beki commited on
Commit
2c8bd66
·
1 Parent(s): 65b220e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
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 entities in text with a [PII detection model](https://huggingface.co/beki/flair-pii-english) trained on protocol trace data generated by [privy](https://github.com/pixie-io/pixie/tree/main/src/datagen/pii/privy) and anonymized with [presidio](https://aka.ms/presidio).
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 [aka.ms/presidio](https://aka.ms/presidio) and [privy](https://github.com/pixie-io/pixie/tree/main/src/datagen/pii/privy)"
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
- "{first_name: Willie Porter, ip_address: 192.168.2.80, email: [email protected]}"
112
- "\n"
113
- "SELECT address FROM users WHERE address = '47 W 13th St, New York, NY 10011'",
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