EC2 Default User commited on
Commit
42cb2f7
1 Parent(s): 34cc4af
Files changed (1) hide show
  1. app.py +16 -1
app.py CHANGED
@@ -21,4 +21,19 @@ if "text_anon" not in st.session_state:
21
  if "n_requests" not in st.session_state:
22
  st.session_state.n_requests = 0
23
 
24
- text = st.text_input(label="Text to be anonymised", placeholder="AI")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  if "n_requests" not in st.session_state:
22
  st.session_state.n_requests = 0
23
 
24
+ text = st.text_input(label="Text to be anonymised", placeholder="Write your text here")
25
+ metadata = st.text_input(
26
+ label="Data to be redacted (optional)",
27
+ placeholder="inspirational",
28
+ )
29
+ white_listed_words = st.text_input(
30
+ label="Data to be ignored (optional)",
31
+ placeholder="inspirational",
32
+ )
33
+ # button return true when clicked
34
+ anonymise_now = st.button(
35
+ label="Anonymise text",
36
+ type="primary",
37
+ on_click=anonymise_text,
38
+ args=(text, metadata, white_listed_words),
39
+ )