lunadebruyne commited on
Commit
960fa25
·
1 Parent(s): 62451e9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -167,12 +167,12 @@ def file(input_file, input_checks):
167
 
168
  def freq(output_file, input_checks):
169
  preds_dict = {"neutral": 10, "anger": 8, "fear": 2, "joy": 15, "love": 3, "sadness": 4}
170
- bars = list(preds_dict.keys())
171
- height = list(preds_dict.values())
172
-
173
- x_pos = np.arange(len(bars))
174
- plt.bar(x_pos, height, color=['lightgrey', 'firebrick', 'rebeccapurple', 'orange', 'palevioletred', 'cornflowerblue'])
175
- plt.xticks(x_pos, bars)
176
  if "emotion distribution over time" in input_checks:
177
  return gr.update(value=plt, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False) # next_button_dist becomes available
178
  elif "peaks" in input_checks:
 
167
 
168
  def freq(output_file, input_checks):
169
  preds_dict = {"neutral": 10, "anger": 8, "fear": 2, "joy": 15, "love": 3, "sadness": 4}
170
+ bars = list(preds_dict.keys())
171
+ height = list(preds_dict.values())
172
+
173
+ x_pos = np.arange(len(bars))
174
+ plt.bar(x_pos, height, color=['lightgrey', 'firebrick', 'rebeccapurple', 'orange', 'palevioletred', 'cornflowerblue'])
175
+ plt.xticks(x_pos, bars)
176
  if "emotion distribution over time" in input_checks:
177
  return gr.update(value=plt, visible=True), gr.update(visible=True), gr.update(visible=False), gr.update(visible=False) # next_button_dist becomes available
178
  elif "peaks" in input_checks: