Karthikeyan commited on
Commit
86e6738
1 Parent(s): 032eb48

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -149,7 +149,7 @@ class LangChain_Document_QA:
149
  return summary
150
 
151
  def _display_graph(self,sentiment_scores):
152
- fig = px.bar(sentiment_scores, orientation='h', color=labels, color_discrete_map={"Negative": "red", "Positive": "green", "Neutral": "gray"})
153
  fig.update_traces(texttemplate='%{x:.2f}%', textposition='outside')
154
  fig.update_layout(height=500, width=200)
155
  return fig
 
149
  return summary
150
 
151
  def _display_graph(self,sentiment_scores):
152
+ fig = px.bar(sentiment_scores, orientation='h')
153
  fig.update_traces(texttemplate='%{x:.2f}%', textposition='outside')
154
  fig.update_layout(height=500, width=200)
155
  return fig