File size: 359 Bytes
083168f 754e93a 083168f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
import streamlit as st
from pii import PII_IDENTIFIER
pii_id_instance = PII_IDENTIFIER()
st.title("Personal data ID")
text_to_predict = st.text_input('Enter text :: ', '')
if st.button("Predict"):
print(text_to_predict)
out = pii_id_instance.identify(text_to_predict)
st.write(out['anonymized_text'])
### TO RUN :: streamlit run ui_app.py |