Spaces:
Runtime error
Runtime error
Max Brodeur-Urbas
commited on
Commit
·
e75e1f6
1
Parent(s):
6c6f6c6
fixing naming bug
Browse files
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['
|
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
|