AIEcosystem commited on
Commit
e890a6f
·
verified ·
1 Parent(s): d5574f7

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +15 -6
src/streamlit_app.py CHANGED
@@ -258,12 +258,21 @@ with tab1:
258
  myzip.writestr("Summary of the results.csv", df.to_csv(index=False))
259
  myzip.writestr("Most Frequent Entities.csv", repeating_entities.to_csv(index=False))
260
  myzip.writestr("Glossary of tags.csv", dfa.to_csv(index=False))
261
- st.download_button(
262
- label="Download results and glossary (zip)",
263
- data=buf.getvalue(),
264
- file_name="nlpblogs_results.zip",
265
- mime="application/zip",
266
- )
 
 
 
 
 
 
 
 
 
267
  if comet_initialized:
268
  experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap_categories")
269
  experiment.end()
 
258
  myzip.writestr("Summary of the results.csv", df.to_csv(index=False))
259
  myzip.writestr("Most Frequent Entities.csv", repeating_entities.to_csv(index=False))
260
  myzip.writestr("Glossary of tags.csv", dfa.to_csv(index=False))
261
+
262
+ with stylable_container(
263
+ key="download_button",
264
+ css_styles="""button { background-color: #008000; border: 1px solid black; padding: 5px; color: white; }""",
265
+ ):
266
+ st.download_button(
267
+ label="Download results and glossary (zip)",
268
+ data=buf.getvalue(),
269
+ file_name="nlpblogs_results.zip",
270
+ mime="application/zip",
271
+ )
272
+
273
+
274
+
275
+
276
  if comet_initialized:
277
  experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap_categories")
278
  experiment.end()