DucThinh04 commited on
Commit
3b03ee6
·
verified ·
1 Parent(s): f3ddb17

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -428,6 +428,7 @@ def main():
428
  values=list(emotion_counts.values()),
429
  names=[emotion_emojis[e] + ' ' + e for e in emotion_counts.keys()],
430
  title="Tỷ lệ các cảm xúc",
 
431
  color_discrete_map={emotion_emojis[e] + ' ' + e: emotion_colors[e] for e in emotion_counts.keys()}
432
  )
433
  st.plotly_chart(fig_pie, use_container_width=True)
 
428
  values=list(emotion_counts.values()),
429
  names=[emotion_emojis[e] + ' ' + e for e in emotion_counts.keys()],
430
  title="Tỷ lệ các cảm xúc",
431
+ color=names,
432
  color_discrete_map={emotion_emojis[e] + ' ' + e: emotion_colors[e] for e in emotion_counts.keys()}
433
  )
434
  st.plotly_chart(fig_pie, use_container_width=True)