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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ class LangChain_Document_QA:
137
  fig.update_layout(height=500, width=200)
138
  return fig
139
  def _display_graph_emotion(self,customer_emotion_score):
140
- fig = px.pie(customer_emotion_score, values='Score', names='Emotion', title='Emotion Distribution')
141
  fig.update_layout(height=500, width=200)
142
  return fig
143
  def _history_of_chat(self):
 
137
  fig.update_layout(height=500, width=200)
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):