Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
•
e387f6f
1
Parent(s):
2414dea
first
Browse files
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
|