mskov commited on
Commit
3cdde10
1 Parent(s): 3df60e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- "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
- "alcohol use": ["alcohol", "drinking", "drinks", "under the influence", "liquor", "beer", "wine"]
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")