Spaces:
Sleeping
Sleeping
added bias dropdown info
Browse files
app.py
CHANGED
@@ -314,7 +314,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
|
|
314 |
openai_gen_row_update = gr.Row(visible=True) #update
|
315 |
tested_model_dropdown_update = gr.Dropdown(visible=False) #update
|
316 |
tested_model_row_update = gr.Row(visible=False) #update
|
317 |
-
#
|
318 |
gen_additional_sentence_checkbox_update = gr.Checkbox(visible=False) #update
|
319 |
|
320 |
test_sentences = []
|
@@ -828,7 +828,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
|
|
828 |
with gr.Row():
|
829 |
example_biases = gr.Dropdown(
|
830 |
value="Select a predefined bias to test",
|
831 |
-
allow_custom_value=
|
832 |
interactive=True,
|
833 |
choices=[
|
834 |
#"Flowers/Insects <> Pleasant/Unpleasant",
|
@@ -850,7 +850,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
|
|
850 |
"Male/Female <> Care/Expertise",
|
851 |
"Hispanic/Caucasian <> Treatment-Adherence",
|
852 |
"Afr.-American/Eur.American <> Risky-Health-Behaviors"
|
853 |
-
], label="Example Biases",
|
854 |
)
|
855 |
with gr.Row(elem_id="group_row"):
|
856 |
group1 = gr.Textbox(label="Words describing Social Group 1", max_lines=1, elem_id="group1_words", elem_classes="input_words", placeholder="he, brother, father, ...")
|
|
|
314 |
openai_gen_row_update = gr.Row(visible=True) #update
|
315 |
tested_model_dropdown_update = gr.Dropdown(visible=False) #update
|
316 |
tested_model_row_update = gr.Row(visible=False) #update
|
317 |
+
# additional sentences disabled by default
|
318 |
gen_additional_sentence_checkbox_update = gr.Checkbox(visible=False) #update
|
319 |
|
320 |
test_sentences = []
|
|
|
828 |
with gr.Row():
|
829 |
example_biases = gr.Dropdown(
|
830 |
value="Select a predefined bias to test",
|
831 |
+
allow_custom_value=True,
|
832 |
interactive=True,
|
833 |
choices=[
|
834 |
#"Flowers/Insects <> Pleasant/Unpleasant",
|
|
|
850 |
"Male/Female <> Care/Expertise",
|
851 |
"Hispanic/Caucasian <> Treatment-Adherence",
|
852 |
"Afr.-American/Eur.American <> Risky-Health-Behaviors"
|
853 |
+
], label="Example Biases", info="Select a predefined bias specification to test"
|
854 |
)
|
855 |
with gr.Row(elem_id="group_row"):
|
856 |
group1 = gr.Textbox(label="Words describing Social Group 1", max_lines=1, elem_id="group1_words", elem_classes="input_words", placeholder="he, brother, father, ...")
|