Zekun Wu commited on
Commit
421c4da
1 Parent(s): 967859c
Files changed (1) hide show
  1. pages/1_Injection.py +2 -2
pages/1_Injection.py CHANGED
@@ -27,7 +27,7 @@ def initialize_state():
27
  "data_processed", "group_name", "occupation", "privilege_label", "protect_label", "num_run",
28
  "uploaded_file", "occupation_submitted","sample_size","charateristics"]
29
  defaults = [False, "", "https://safeguard-monitor.openai.azure.com/", "gpt35-1106", 0.0, 150, False, "Gender",
30
- "Programmer", "Male", "Female", 1, None, False,1,"This candidate's performance during the internship at our institution was evaluated to be at the 50th percentile among current employees."]
31
  for key, default in zip(keys, defaults):
32
  if key not in st.session_state:
33
  st.session_state[key] = default
@@ -115,7 +115,7 @@ else:
115
  )
116
 
117
  if st.button("Reset Experiment Settings"):
118
- st.session_state.sample_size = 1
119
  st.session_state.charateristics = "This candidate's performance during the internship at our institution was evaluated to be at the 50th percentile among current employees."
120
  st.session_state.occupation = "Programmer"
121
  st.session_state.group_name = "Gender"
 
27
  "data_processed", "group_name", "occupation", "privilege_label", "protect_label", "num_run",
28
  "uploaded_file", "occupation_submitted","sample_size","charateristics"]
29
  defaults = [False, "", "https://safeguard-monitor.openai.azure.com/", "gpt35-1106", 0.0, 150, False, "Gender",
30
+ "Programmer", "Male", "Female", 1, None, False,2,"This candidate's performance during the internship at our institution was evaluated to be at the 50th percentile among current employees."]
31
  for key, default in zip(keys, defaults):
32
  if key not in st.session_state:
33
  st.session_state[key] = default
 
115
  )
116
 
117
  if st.button("Reset Experiment Settings"):
118
+ st.session_state.sample_size = 2
119
  st.session_state.charateristics = "This candidate's performance during the internship at our institution was evaluated to be at the 50th percentile among current employees."
120
  st.session_state.occupation = "Programmer"
121
  st.session_state.group_name = "Gender"