mskov commited on
Commit
c7eb4e5
1 Parent(s): fe4079c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -122,14 +122,13 @@ def classify_toxicity(audio_file, classify_anxiety, emo_class, explitive_selecti
122
  topScore = ""
123
  affirm = ""
124
  if maxval > threshold:
125
- if maxval > threshold:
126
- print("Toxic")
127
- affirm = positive_affirmations()
128
- topScore = maxval
129
- else:
130
- print("Not Toxic")
131
- affirm = ""
132
- topScore = maxval
133
  else:
134
  topScore = ""
135
  affirm = ""
 
122
  topScore = ""
123
  affirm = ""
124
  if maxval > threshold:
125
+ print("Toxic")
126
+ affirm = positive_affirmations()
127
+ topScore = maxval
128
+ else:
129
+ print("Not Toxic")
130
+ affirm = ""
131
+ topScore = maxval
 
132
  else:
133
  topScore = ""
134
  affirm = ""