Paula Leonova
commited on
Commit
·
44ef896
1
Parent(s):
69a7d3f
Update threshold for keyword score
Browse files
app.py
CHANGED
|
@@ -184,7 +184,7 @@ if submit_button or example_button:
|
|
| 184 |
else:
|
| 185 |
title_element = ['title']
|
| 186 |
kw_column_list = ['keyword', 'score']
|
| 187 |
-
kw_df = kw_df[kw_df['score'] > 0.
|
| 188 |
st.dataframe(kw_df)
|
| 189 |
st.download_button(
|
| 190 |
label="Download data as CSV",
|
|
|
|
| 184 |
else:
|
| 185 |
title_element = ['title']
|
| 186 |
kw_column_list = ['keyword', 'score']
|
| 187 |
+
kw_df = kw_df[kw_df['score'] > 0.25][title_element + kw_column_list].sort_values(title_element + ['score'], ascending=False).reset_index().drop(columns='index')
|
| 188 |
st.dataframe(kw_df)
|
| 189 |
st.download_button(
|
| 190 |
label="Download data as CSV",
|