omri374 commited on
Commit
b60cda0
1 Parent(s): bf3096b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -24,6 +24,7 @@ def analyzer_engine():
24
 
25
  registry = RecognizerRegistry()
26
  registry.add_recognizer(transformers_recognizer)
 
27
 
28
  analyzer = AnalyzerEngine(registry=registry)
29
  return analyzer
@@ -54,12 +55,12 @@ def anonymize(text, analyze_results):
54
  return res.text
55
 
56
 
57
- st.set_page_config(page_title="Presidio demo", layout="wide")
58
 
59
  # Side bar
60
  st.sidebar.markdown(
61
  """
62
- Anonymize PII entities with [presidio](https://aka.ms/presidio).
63
  """
64
  )
65
 
 
24
 
25
  registry = RecognizerRegistry()
26
  registry.add_recognizer(transformers_recognizer)
27
+ registry.load_predefined_recognizers()
28
 
29
  analyzer = AnalyzerEngine(registry=registry)
30
  return analyzer
 
55
  return res.text
56
 
57
 
58
+ st.set_page_config(page_title="Presidio demo (English)", layout="wide")
59
 
60
  # Side bar
61
  st.sidebar.markdown(
62
  """
63
+ Anonymize PII entities with [presidio](https://aka.ms/presidio), spaCy and a [PHI detection Roberta model](https://huggingface.co/obi/deid_roberta_i2b2).
64
  """
65
  )
66