Spaces:
Runtime error
Runtime error
EC2 Default User
commited on
Commit
•
2414dea
1
Parent(s):
87d5615
first
Browse files
app.py
CHANGED
@@ -1,4 +1,13 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|