Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -0
src/streamlit_app.py
CHANGED
|
@@ -329,7 +329,13 @@ if st.session_state.show_results:
|
|
| 329 |
mime="application/zip",
|
| 330 |
)
|
| 331 |
|
|
|
|
| 332 |
if comet_initialized:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 333 |
experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap_categories")
|
| 334 |
experiment.end()
|
| 335 |
|
|
|
|
| 329 |
mime="application/zip",
|
| 330 |
)
|
| 331 |
|
| 332 |
+
# This is the correct placement for the Comet ML logging
|
| 333 |
if comet_initialized:
|
| 334 |
+
experiment = Experiment(
|
| 335 |
+
api_key=COMET_API_KEY,
|
| 336 |
+
workspace=COMET_WORKSPACE,
|
| 337 |
+
project_name=COMET_PROJECT_NAME,
|
| 338 |
+
)
|
| 339 |
experiment.log_figure(figure=fig_treemap, figure_name="entity_treemap_categories")
|
| 340 |
experiment.end()
|
| 341 |
|