Spaces:
Runtime error
Runtime error
Zekun Wu
commited on
Commit
·
3ef2f27
1
Parent(s):
3d31bd3
update
Browse files- app.py +1 -1
- bias_detector/bias_detector.py +0 -18
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from bias_detector import Detector
|
3 |
|
4 |
-
st.title("Multidimensional
|
5 |
|
6 |
EXAMPLES = {
|
7 |
"Gender": "The baby loved the presence of his caring mommy.",
|
|
|
1 |
import streamlit as st
|
2 |
from bias_detector import Detector
|
3 |
|
4 |
+
st.title("Multidimensional Stereotype Multilevel Detection")
|
5 |
|
6 |
EXAMPLES = {
|
7 |
"Gender": "The baby loved the presence of his caring mommy.",
|
bias_detector/bias_detector.py
CHANGED
@@ -34,24 +34,6 @@ class Detector:
|
|
34 |
}
|
35 |
}
|
36 |
|
37 |
-
self.SD_SL_label_mapping = {
|
38 |
-
'LABEL_0': 'stereotype',
|
39 |
-
'LABEL_1': 'anti-stereotype',
|
40 |
-
'LABEL_2': 'unrelated'
|
41 |
-
}
|
42 |
-
|
43 |
-
self.MD_SL_label_mapping = {
|
44 |
-
'LABEL_0': 'unrelated',
|
45 |
-
'LABEL_1': 'stereotype_gender',
|
46 |
-
'LABEL_2': 'anti-stereotype_gender',
|
47 |
-
'LABEL_3': 'stereotype_race',
|
48 |
-
'LABEL_4': 'anti-stereotype_race',
|
49 |
-
'LABEL_5': 'stereotype_profession',
|
50 |
-
'LABEL_6': 'anti-stereotype_profession',
|
51 |
-
'LABEL_7': 'stereotype_religion',
|
52 |
-
'LABEL_8': 'anti-stereotype_religion'
|
53 |
-
}
|
54 |
-
|
55 |
self.classifier = classifier
|
56 |
self.model_type = model_type
|
57 |
|
|
|
34 |
}
|
35 |
}
|
36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
self.classifier = classifier
|
38 |
self.model_type = model_type
|
39 |
|