nlpblogs commited on
Commit
037c6c4
·
verified ·
1 Parent(s): dc3fbf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"), '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
 
 
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