mskov commited on
Commit
6f43e07
·
1 Parent(s): 81a7cd5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -120,6 +120,7 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
120
  maxval = label_score_dict[k]
121
  print("max value: ", maxval)
122
  topScore = []
 
123
  if maxval > threshold:
124
  if maxval > threshold:
125
  print("Toxic")
@@ -131,6 +132,7 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
131
  topScore = maxval
132
  else:
133
  topScore = []
 
134
  if toxicity_score > threshold:
135
  affirm = positive_affirmations()
136
  topScore = toxicity_score
 
120
  maxval = label_score_dict[k]
121
  print("max value: ", maxval)
122
  topScore = []
123
+ affirm = []
124
  if maxval > threshold:
125
  if maxval > threshold:
126
  print("Toxic")
 
132
  topScore = maxval
133
  else:
134
  topScore = []
135
+ affirm = []
136
  if toxicity_score > threshold:
137
  affirm = positive_affirmations()
138
  topScore = toxicity_score