Max Brodeur-Urbas commited on
Commit
e75e1f6
·
1 Parent(s): 6c6f6c6

fixing naming bug

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def predict(audio_file_path):
62
  avg = sum(confArray) / len(confArray)
63
  confs[labels[label]] = avg
64
 
65
- sentiments = obj['toxicity_predictions']
66
  sentiment_labels = {'toxicity':'Toxic', 'severe_toxicity':'Severe Toxicity', 'obscene':'Obscene', 'threat':'Threat', 'insult':'Insult', 'identity_attack':'Identity Hate', 'sexual_explicit':'Sexually Explicit'}
67
  sentiment_confs = {}
68
  detected_toxicity = False
 
62
  avg = sum(confArray) / len(confArray)
63
  confs[labels[label]] = avg
64
 
65
+ sentiments = obj['acidity_predictions']
66
  sentiment_labels = {'toxicity':'Toxic', 'severe_toxicity':'Severe Toxicity', 'obscene':'Obscene', 'threat':'Threat', 'insult':'Insult', 'identity_attack':'Identity Hate', 'sexual_explicit':'Sexually Explicit'}
67
  sentiment_confs = {}
68
  detected_toxicity = False