wu981526092 commited on
Commit
417d05e
·
1 Parent(s): 5e5e890
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,7 +1,7 @@
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.",
@@ -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 Bias Levels:", ("Sentence","Token"))
37
- dimension = st.selectbox("Select the Bias Dimensions:", ("All","Gender","Religion","Race","Profession"))
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...'):