Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -769,7 +769,14 @@ elif selected_menu_option == "Hashtags":
|
|
769 |
|
770 |
df_community_names = pd.DataFrame(sorted_community_hashtags.columns, columns=['community_names'], index=sorted_community_hashtags.columns)
|
771 |
df_community_names = st.data_editor(df_community_names)
|
772 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
#create dict with community names
|
774 |
community_names_lookup = df_community_names['community_names'].to_dict()
|
775 |
|
|
|
769 |
|
770 |
df_community_names = pd.DataFrame(sorted_community_hashtags.columns, columns=['community_names'], index=sorted_community_hashtags.columns)
|
771 |
df_community_names = st.data_editor(df_community_names)
|
772 |
+
# download the edited df_community_names as csv
|
773 |
+
st.download_button(
|
774 |
+
label="Download community names as csv",
|
775 |
+
data=df_community_names.to_csv().encode("utf-8"),
|
776 |
+
file_name="community_names.csv",
|
777 |
+
mime="text/csv",
|
778 |
+
)
|
779 |
+
|
780 |
#create dict with community names
|
781 |
community_names_lookup = df_community_names['community_names'].to_dict()
|
782 |
|