nlpblogs commited on
Commit
adc9b1f
·
verified ·
1 Parent(s): b554c68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -173,12 +173,12 @@ if st.button("Results"):
173
  df_styled = df.style.set_properties(**properties)
174
  st.dataframe(df_styled)
175
  if df is not None:
176
- df["all"] = "all"
177
- fig = px.treemap(df, path=['all', 'text', 'label'])
178
- fig.update_traces(root_color="yellow")
179
- fig.update_layout(margin = dict(t=50, l=25, r = 25, b=250))
180
  st.plotly_chart(fig)
181
 
 
182
 
183
 
184
 
 
173
  df_styled = df.style.set_properties(**properties)
174
  st.dataframe(df_styled)
175
  if df is not None:
176
+ fig = px.treemap(df, path=[px.Constant("all"), 'text', 'label'],
177
+ values='score', color='label')
178
+ fig.update_layout(margin = dict(t=50, l=25, r=25, b=25))
 
179
  st.plotly_chart(fig)
180
 
181
+
182
 
183
 
184