Karthikeyan commited on
Commit
e59d9c9
1 Parent(s): cf4ca65

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ class LangChain_Document_QA:
126
  scores = sentiment_scores.values()
127
  fig = px.bar(x=scores, y=labels, orientation='h', color=labels, color_discrete_map={"Negative": "red", "Positive": "green", "Neutral": "gray"})
128
  fig.update_traces(texttemplate='%{x:.2f}%', textposition='outside')
129
- fig.update_layout(height=500, width=200)
130
  return fig
131
  def _display_graph_emotion(self,customer_emotion_score):
132
  fig = px.pie(customer_emotion_score, values='Score', names='Emotion', title='Emotion Distribution', hover_data=['Score'])
 
126
  scores = sentiment_scores.values()
127
  fig = px.bar(x=scores, y=labels, orientation='h', color=labels, color_discrete_map={"Negative": "red", "Positive": "green", "Neutral": "gray"})
128
  fig.update_traces(texttemplate='%{x:.2f}%', textposition='outside')
129
+ fig.update_layout(height=500, width=150)
130
  return fig
131
  def _display_graph_emotion(self,customer_emotion_score):
132
  fig = px.pie(customer_emotion_score, values='Score', names='Emotion', title='Emotion Distribution', hover_data=['Score'])