Update app.py
Browse files
app.py
CHANGED
@@ -235,7 +235,7 @@ choices.insert(0,'None')
|
|
235 |
# Display topics to user currently in sidebar - april 15 2022
|
236 |
st.sidebar.subheader("Topics")
|
237 |
show_clusters = {i:len(clusters[i]) for i in clusters.keys()}
|
238 |
-
cdf = pd.DataFrame(data={"
|
239 |
styler = cdf.style.hide_index()
|
240 |
st.sidebar.write(styler.to_html(), unsafe_allow_html=True)
|
241 |
|
|
|
235 |
# Display topics to user currently in sidebar - april 15 2022
|
236 |
st.sidebar.subheader("Topics")
|
237 |
show_clusters = {i:len(clusters[i]) for i in clusters.keys()}
|
238 |
+
cdf = pd.DataFrame(data={"Cluster":list(show_clusters.keys()), "Articles":list(show_clusters.values())} )
|
239 |
styler = cdf.style.hide_index()
|
240 |
st.sidebar.write(styler.to_html(), unsafe_allow_html=True)
|
241 |
|