mskov commited on
Commit
7516ad6
1 Parent(s): 3f0c79b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -128,14 +128,6 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
128
  print("Not Toxic")
129
  affirm = ""
130
  topScore = maxval
131
- else:
132
- if toxicity_score > threshold:
133
- affirm = positive_affirmations()
134
- topScore = toxicity_score
135
- else:
136
- print("Not Toxic")
137
- affirm = ""
138
- topScore = toxicity_score
139
  else:
140
  if toxicity_score > threshold:
141
  affirm = positive_affirmations()
 
128
  print("Not Toxic")
129
  affirm = ""
130
  topScore = maxval
 
 
 
 
 
 
 
 
131
  else:
132
  if toxicity_score > threshold:
133
  affirm = positive_affirmations()