EC2 Default User commited on
Commit
e387f6f
1 Parent(s): 2414dea
Files changed (1) hide show
  1. app.py +9 -0
app.py CHANGED
@@ -11,3 +11,12 @@ logging.basicConfig(format="\n%(asctime)s\n%(message)s", level=logging.INFO, for
11
 
12
  def anonymise_text(text: str, metadata: str = "", white_listed_words: str = ""):
13
  st.session_state.text_anon = "this is anonymised"
 
 
 
 
 
 
 
 
 
 
11
 
12
  def anonymise_text(text: str, metadata: str = "", white_listed_words: str = ""):
13
  st.session_state.text_anon = "this is anonymised"
14
+
15
+ if "text" not in st.session_state:
16
+ st.session_state.text = ""
17
+ if "text_error" not in st.session_state:
18
+ st.session_state.text_error = ""
19
+ if "text_anon" not in st.session_state:
20
+ st.session_state.text_anon = ""
21
+ if "n_requests" not in st.session_state:
22
+ st.session_state.n_requests = 0