Spaces:
Runtime error
Runtime error
typo
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def visualization(path_data, lang, num_docs, num_docs_for_words):
|
|
61 |
|
62 |
if "flagged_%" in columns:
|
63 |
flagged_ratio = st.sidebar.slider(
|
64 |
-
"% filtered by
|
65 |
)
|
66 |
flagged_index = max(0, math.floor((100 - flagged_ratio) * len(data.index) / 100) - 1)
|
67 |
flagged_cutoff = np.partition(data["flagged_%"], flagged_index)[flagged_index]
|
|
|
61 |
|
62 |
if "flagged_%" in columns:
|
63 |
flagged_ratio = st.sidebar.slider(
|
64 |
+
"% filtered by flagged words ratio", 0.0, 50.0, 0.0, step=0.1
|
65 |
)
|
66 |
flagged_index = max(0, math.floor((100 - flagged_ratio) * len(data.index) / 100) - 1)
|
67 |
flagged_cutoff = np.partition(data["flagged_%"], flagged_index)[flagged_index]
|