Karthikeyan commited on
Commit
d28eb66
1 Parent(s): 846e7b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -138,6 +138,7 @@ class LangChain_Document_QA:
138
  return fig
139
  def _display_graph_emotion(self,customer_emotion_score):
140
  fig = px.pie(data, values='Score', names='Emotion', title='Emotion Distribution', hover_data=['Score'])
 
141
  fig.update_layout(height=500, width=200)
142
  return fig
143
  def _history_of_chat(self):
 
138
  return fig
139
  def _display_graph_emotion(self,customer_emotion_score):
140
  fig = px.pie(data, values='Score', names='Emotion', title='Emotion Distribution', hover_data=['Score'])
141
+ fig.update_traces(texttemplate='Emotion', textposition='outside')
142
  fig.update_layout(height=500, width=200)
143
  return fig
144
  def _history_of_chat(self):