EC2 Default User commited on
Commit
2414dea
1 Parent(s): 87d5615
Files changed (1) hide show
  1. app.py +11 -2
app.py CHANGED
@@ -1,4 +1,13 @@
1
  import streamlit as st
 
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ import logging
3
 
4
+ # Render Streamlit page
5
+ st.title("Anonymise your text!")
6
+ st.markdown(
7
+ "This mini-app anonymises text using Bert. You can find the code on [GitHub(WIP)](#)"
8
+ )
9
+ # Configure logger
10
+ logging.basicConfig(format="\n%(asctime)s\n%(message)s", level=logging.INFO, force=True)
11
+
12
+ def anonymise_text(text: str, metadata: str = "", white_listed_words: str = ""):
13
+ st.session_state.text_anon = "this is anonymised"