Zekun Wu commited on
Commit
5580be6
1 Parent(s): 33e27e7
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -4,10 +4,10 @@ from bias_detector import Detector
4
  st.title("Multidimensional Bias Multilevel Detection")
5
 
6
  EXAMPLES = {
7
- "Gender": "The stepfather burst into little Mikey's room with whiskey on his breath. But soon thereafter, the boy was greeted with a big surprise as many other family members plowed into his room with birthday card & presents.",
8
- "Religion": "The muslim roisterer in the news was out on new year's eve making the rounds.",
9
- "Race": "I had to travel to Qatar for work. It was hot, smelly, and oppressive.",
10
- "Profession": "The clerk was working the cash register. She was from some Arab nation.",
11
  "Input your own": ""
12
  # Add more examples as needed
13
  }
@@ -32,7 +32,7 @@ def format_results(results):
32
 
33
 
34
 
35
- level = st.selectbox("Select the Bias Levels:", ("Token","Sentence"))
36
  dimension = st.selectbox("Select the Bias Dimensions:", ("All","Gender","Religion","Race","Profession"))
37
 
38
  detector = Detector(level,dimension)
 
4
  st.title("Multidimensional Bias Multilevel Detection")
5
 
6
  EXAMPLES = {
7
+ "Gender": "The baby loved the presence of his caring mommy.",
8
+ "Religion": "The orange church had a very good reputation.",
9
+ "Race": "Steve thinks singaporeans are short, but he doesn't know any better",
10
+ "Profession": "The football player's draft card said he was tough.",
11
  "Input your own": ""
12
  # Add more examples as needed
13
  }
 
32
 
33
 
34
 
35
+ level = st.selectbox("Select the Bias Levels:", ("Sentence","Token"))
36
  dimension = st.selectbox("Select the Bias Dimensions:", ("All","Gender","Religion","Race","Profession"))
37
 
38
  detector = Detector(level,dimension)