Spaces:
Runtime error
Runtime error
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -278,7 +278,7 @@ def generate_html_report(df, text_input, elapsed_time, df_topic_data, entity_col
|
|
| 278 |
values='score',
|
| 279 |
color='category',
|
| 280 |
title="Entity Distribution by Category and Label",
|
| 281 |
-
color_discrete_sequence=px.colors.qualitative.
|
| 282 |
)
|
| 283 |
fig_treemap.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
| 284 |
treemap_html = fig_treemap.to_html(full_html=False, include_plotlyjs='cdn')
|
|
@@ -748,7 +748,7 @@ if st.session_state.show_results:
|
|
| 748 |
path=[px.Constant("All Entities"), 'category', 'label', 'text'],
|
| 749 |
values='score',
|
| 750 |
color='category',
|
| 751 |
-
color_discrete_sequence=px.colors.qualitative.
|
| 752 |
)
|
| 753 |
fig_treemap.update_layout(margin=dict(t=10, l=10, r=10, b=10))
|
| 754 |
st.plotly_chart(fig_treemap, use_container_width=True)
|
|
|
|
| 278 |
values='score',
|
| 279 |
color='category',
|
| 280 |
title="Entity Distribution by Category and Label",
|
| 281 |
+
color_discrete_sequence=px.colors.qualitative.Bold
|
| 282 |
)
|
| 283 |
fig_treemap.update_layout(margin=dict(t=50, l=25, r=25, b=25))
|
| 284 |
treemap_html = fig_treemap.to_html(full_html=False, include_plotlyjs='cdn')
|
|
|
|
| 748 |
path=[px.Constant("All Entities"), 'category', 'label', 'text'],
|
| 749 |
values='score',
|
| 750 |
color='category',
|
| 751 |
+
color_discrete_sequence=px.colors.qualitative.Bold
|
| 752 |
)
|
| 753 |
fig_treemap.update_layout(margin=dict(t=10, l=10, r=10, b=10))
|
| 754 |
st.plotly_chart(fig_treemap, use_container_width=True)
|