Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- 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 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 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()
|