enoreyes commited on
Commit
333b64f
1 Parent(s): aa52070

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -2
utils.py CHANGED
@@ -50,6 +50,7 @@ thresholds = {"joy": 0.99,"anger": 0.95,"surprise": 0.95,"sadness": 0.98,"fear":
50
  color_map = {"joy": "green","anger": "red","surprise": "yellow","sadness": "blue","fear": "orange","love": "purple",}
51
 
52
  def create_fig(x_min, x_max, plot_sentences):
 
53
  x, y = list(zip(*to_plot))
54
 
55
  plot_df = pd.DataFrame(
@@ -94,8 +95,6 @@ def sentiment(diarized, emotion_pipeline):
94
  """
95
 
96
  customer_sentiments = []
97
-
98
- to_plot = []
99
  plot_sentences = []
100
 
101
  # used to set the x range of ticks on the plot
 
50
  color_map = {"joy": "green","anger": "red","surprise": "yellow","sadness": "blue","fear": "orange","love": "purple",}
51
 
52
  def create_fig(x_min, x_max, plot_sentences):
53
+ to_plot = []
54
  x, y = list(zip(*to_plot))
55
 
56
  plot_df = pd.DataFrame(
 
95
  """
96
 
97
  customer_sentiments = []
 
 
98
  plot_sentences = []
99
 
100
  # used to set the x range of ticks on the plot