Paula Leonova
commited on
Commit
•
0223b31
1
Parent(s):
a04a031
Revert "Remove index from file downloads"
Browse filesThis reverts commit a04a031fd0052096fcb03e00594be9a5a6f5c830.
app.py
CHANGED
@@ -168,7 +168,7 @@ if submit_button or example_button:
|
|
168 |
st.dataframe(text_df.head())
|
169 |
st.download_button(
|
170 |
label="Download data as CSV",
|
171 |
-
data=text_df.to_csv(
|
172 |
file_name='title_text.csv',
|
173 |
mime='title_text/csv',
|
174 |
)
|
@@ -228,7 +228,7 @@ if submit_button or example_button:
|
|
228 |
st.dataframe(kw_df)
|
229 |
st.download_button(
|
230 |
label="Download data as CSV",
|
231 |
-
data=kw_df.to_csv(
|
232 |
file_name='title_keywords.csv',
|
233 |
mime='title_keywords/csv',
|
234 |
)
|
@@ -265,7 +265,7 @@ if submit_button or example_button:
|
|
265 |
st.dataframe(sum_df)
|
266 |
st.download_button(
|
267 |
label="Download data as CSV",
|
268 |
-
data=sum_df.to_csv(
|
269 |
file_name='title_summary.csv',
|
270 |
mime='title_summary/csv',
|
271 |
)
|
@@ -342,7 +342,7 @@ if submit_button or example_button:
|
|
342 |
st.dataframe(label_match_df) #.sort_values(['title', 'label'], ascending=[False, False]))
|
343 |
st.download_button(
|
344 |
label="Download data as CSV",
|
345 |
-
data=label_match_df.to_csv(
|
346 |
file_name='title_label_sum_full.csv',
|
347 |
mime='title_label_sum_full/csv',
|
348 |
)
|
|
|
168 |
st.dataframe(text_df.head())
|
169 |
st.download_button(
|
170 |
label="Download data as CSV",
|
171 |
+
data=text_df.to_csv().encode('utf-8'),
|
172 |
file_name='title_text.csv',
|
173 |
mime='title_text/csv',
|
174 |
)
|
|
|
228 |
st.dataframe(kw_df)
|
229 |
st.download_button(
|
230 |
label="Download data as CSV",
|
231 |
+
data=kw_df.to_csv().encode('utf-8'),
|
232 |
file_name='title_keywords.csv',
|
233 |
mime='title_keywords/csv',
|
234 |
)
|
|
|
265 |
st.dataframe(sum_df)
|
266 |
st.download_button(
|
267 |
label="Download data as CSV",
|
268 |
+
data=sum_df.to_csv().encode('utf-8'),
|
269 |
file_name='title_summary.csv',
|
270 |
mime='title_summary/csv',
|
271 |
)
|
|
|
342 |
st.dataframe(label_match_df) #.sort_values(['title', 'label'], ascending=[False, False]))
|
343 |
st.download_button(
|
344 |
label="Download data as CSV",
|
345 |
+
data=label_match_df.to_csv().encode('utf-8'),
|
346 |
file_name='title_label_sum_full.csv',
|
347 |
mime='title_label_sum_full/csv',
|
348 |
)
|