Spaces:
Runtime error
Runtime error
Commit
·
417d05e
1
Parent(s):
5e5e890
update
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from bias_detector import Detector
|
3 |
|
4 |
-
st.title("Multidimensional Stereotype
|
5 |
|
6 |
EXAMPLES = {
|
7 |
"Gender": "The baby loved the presence of his caring mommy.",
|
@@ -33,8 +33,8 @@ def format_results(results, bias_level):
|
|
33 |
formatted += f"Prediction score: {pred}\n"
|
34 |
return formatted
|
35 |
|
36 |
-
level = st.selectbox("Select the
|
37 |
-
dimension = st.selectbox("Select the
|
38 |
|
39 |
if st.button("Load Models"):
|
40 |
with st.spinner('Loading models...'):
|
|
|
1 |
import streamlit as st
|
2 |
from bias_detector import Detector
|
3 |
|
4 |
+
st.title("Multidimensional Multilevel Stereotype Detection")
|
5 |
|
6 |
EXAMPLES = {
|
7 |
"Gender": "The baby loved the presence of his caring mommy.",
|
|
|
33 |
formatted += f"Prediction score: {pred}\n"
|
34 |
return formatted
|
35 |
|
36 |
+
level = st.selectbox("Select the Detection Levels:", ("Sentence","Token"))
|
37 |
+
dimension = st.selectbox("Select the Stereotype Dimensions:", ("All","Gender","Religion","Race","Profession"))
|
38 |
|
39 |
if st.button("Load Models"):
|
40 |
with st.spinner('Loading models...'):
|