lunadebruyne commited on
Commit
62451e9
·
1 Parent(s): 3ed8b4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -166,9 +166,7 @@ def file(input_file, input_checks):
166
  return gr.update(value=output, visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
167
 
168
  def freq(output_file, input_checks):
169
- preds_dict = {"neutral": 0, "anger": 0, "fear": 0, "joy": 0, "love": 0, "sadness": 0}
170
- for pred in preds:
171
- preds_dict[pred] = preds_dict[pred] + 1
172
  bars = list(preds_dict.keys())
173
  height = list(preds_dict.values())
174
 
 
166
  return gr.update(value=output, visible=True), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False), gr.update(visible=False) # next_button_freq becomes available
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