Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -34,10 +34,10 @@ emo_dict = {
|
|
34 |
|
35 |
# static classes for now, but it would be best ot have the user select from multiple, and to enter their own
|
36 |
class_options = {
|
37 |
-
"
|
38 |
-
"LGBTQ+
|
39 |
-
"
|
40 |
-
"
|
41 |
}
|
42 |
|
43 |
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large")
|
|
|
34 |
|
35 |
# static classes for now, but it would be best ot have the user select from multiple, and to enter their own
|
36 |
class_options = {
|
37 |
+
"Racism": ["racism", "hate speech", "bigotry", "racially targeted", "racial slur", "ethnic slur", "ethnic hate", "pro-white nationalism"],
|
38 |
+
"LGBTQ+ Hate": ["gay slur", "trans slur", "homophobic slur", "transphobia", "anti-LBGTQ+"],
|
39 |
+
"Sexually Explicit": ["sexually explicit", "sexually coercive", "sexual exploitation", "vulgar", "raunchy", "sexist", "sexually demeaning", "sexual violence", "victim blaming"],
|
40 |
+
"Pregnancy & Birth Complications": ["miscarriage", "child loss", "child death", "abortion", "pregnancy", "childbirth", "baby shower", "postpartum"]
|
41 |
}
|
42 |
|
43 |
pipe = pipeline("automatic-speech-recognition", model="openai/whisper-large")
|