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