Spaces:
Runtime error
Runtime error
removed prints
Browse files
app.py
CHANGED
@@ -59,11 +59,6 @@ def visualization(path_data, lang, num_docs, num_docs_for_words):
|
|
59 |
|
60 |
bad_word_file = st.sidebar.file_uploader("Upload your own list of bad words (1 word per line)")
|
61 |
|
62 |
-
st.session_state.old_bad_word_file = None
|
63 |
-
if bad_word_file != st.write(st.session_state.old_bad_word_file):
|
64 |
-
recalculate_bad_words(bad_word_file)
|
65 |
-
st.session_state.old_bad_word_file = bad_word_file
|
66 |
-
|
67 |
if "bad_%" in columns:
|
68 |
bad_ratio = st.sidebar.slider(
|
69 |
"% filtered by badwords ratio", 0.0, 50.0, 0.0, step=0.1
|
|
|
59 |
|
60 |
bad_word_file = st.sidebar.file_uploader("Upload your own list of bad words (1 word per line)")
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
if "bad_%" in columns:
|
63 |
bad_ratio = st.sidebar.slider(
|
64 |
"% filtered by badwords ratio", 0.0, 50.0, 0.0, step=0.1
|