shainaraza commited on
Commit
61aba4c
1 Parent(s): 6be538d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -0
app.py CHANGED
@@ -56,6 +56,26 @@ bias_pipeline = BiasPipeline(model_loader)
56
  # Streamlit interface setup
57
  st.title('UnBIAS App')
58
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
59
  # Dropdown to select a test sentence
60
  selected_sentence = st.selectbox("Choose a pre-loaded sentence to analyze and debias:", [""] + test_sentences)
61
 
 
56
  # Streamlit interface setup
57
  st.title('UnBIAS App')
58
 
59
+ test_sentences = [
60
+ "Women are just too emotional to be leaders.",
61
+ "All young people are lazy and addicted to their phones.",
62
+ "People from that country are always dishonest and corrupt.",
63
+ "Men are inherently better at science and math than women.",
64
+ "The elderly are just burdens to society; they contribute nothing.",
65
+ "All poor people are lazy and don't want to work.",
66
+ "People who follow that religion are all terrorists.",
67
+ "Immigrants are taking all our jobs and ruining the country.",
68
+ "All wealthy people achieved success only through manipulation and deceit.",
69
+ "People with tattoos are not professional.",
70
+ "All politicians are liars and cannot be trusted.",
71
+ "Blue-collar workers don't have any real skills.",
72
+ "Anyone who doesn't attend college is unintelligent.",
73
+ "Only people from the city are sophisticated.",
74
+ "Rural folks have backward mindsets and don't understand progress.",
75
+ "All artists are always broke and unreliable.",
76
+ "Anyone from that region is uneducated and narrow-minded.",
77
+ "People without jobs are simply not trying hard enough."
78
+ ]
79
  # Dropdown to select a test sentence
80
  selected_sentence = st.selectbox("Choose a pre-loaded sentence to analyze and debias:", [""] + test_sentences)
81