presidio commited on
Commit
d0e1245
1 Parent(s): c555b1d

Update presidio_streamlit.py

Browse files
Files changed (1) hide show
  1. presidio_streamlit.py +14 -0
presidio_streamlit.py CHANGED
@@ -4,6 +4,8 @@ from json import JSONEncoder
4
 
5
  import pandas as pd
6
  import streamlit as st
 
 
7
  from annotated_text import annotated_text
8
 
9
  from presidio_helpers import (
@@ -15,6 +17,18 @@ from presidio_helpers import (
15
  analyzer_engine,
16
  )
17
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  st.set_page_config(page_title="Presidio demo", layout="wide")
19
 
20
  # Sidebar
 
4
 
5
  import pandas as pd
6
  import streamlit as st
7
+ import streamlit.components.v1 as components
8
+
9
  from annotated_text import annotated_text
10
 
11
  from presidio_helpers import (
 
17
  analyzer_engine,
18
  )
19
 
20
+ components.html(
21
+ """
22
+ <script type="text/javascript">
23
+ (function(c,l,a,r,i,t,y){
24
+ c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
25
+ t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;
26
+ y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
27
+ })(window, document, "clarity", "script", "h7f8bp42n8");
28
+ </script>
29
+ """
30
+ )
31
+
32
  st.set_page_config(page_title="Presidio demo", layout="wide")
33
 
34
  # Sidebar