Update app.py
Browse files
app.py
CHANGED
@@ -50,8 +50,8 @@ for uploaded_file in uploaded_files:
|
|
50 |
st.dataframe(entities)
|
51 |
|
52 |
import plotly.express as px
|
53 |
-
fig = px.treemap(df, path=[px.Constant("all"), '
|
54 |
-
values='
|
55 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
56 |
st.plotly_chart(fig)
|
57 |
|
|
|
50 |
st.dataframe(entities)
|
51 |
|
52 |
import plotly.express as px
|
53 |
+
fig = px.treemap(df, path=[px.Constant("all"), 'text', 'label', 'score'],
|
54 |
+
values='label', color='text')
|
55 |
fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
|
56 |
st.plotly_chart(fig)
|
57 |
|