Sa-m commited on
Commit
5cc1ce3
1 Parent(s): 29aa37d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -222,7 +222,8 @@ def analysis(Manifesto,Search):
222
  plt.title('Sentiment Analysis')
223
  plt.xlabel('Sentiment')
224
  plt.ylabel('Counts')
225
- plt.set_facecolor("#2E2E2E")
 
226
  plt.figure(figsize=(4,3))
227
  df['Analysis on Polarity'].value_counts().plot(kind ='bar')
228
  plt.tight_layout()
 
222
  plt.title('Sentiment Analysis')
223
  plt.xlabel('Sentiment')
224
  plt.ylabel('Counts')
225
+ fig, ax = plt.subplots()
226
+ ax.set_facecolor("#2E2E2E")
227
  plt.figure(figsize=(4,3))
228
  df['Analysis on Polarity'].value_counts().plot(kind ='bar')
229
  plt.tight_layout()