rjiang12 commited on
Commit
02e0ae8
·
1 Parent(s): ebfafc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -578,8 +578,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
578
  with gr.Row():
579
  with gr.Column(scale=2):
580
  gr.Markdown("### Bias Test Results")
581
- with gr.Column(scale=1):
582
- gr.Markdown("### Interpretation")
583
  with gr.Row():
584
  with gr.Column(scale=2):
585
  lbl_model_bias = gr.Markdown("**Model Bias** - % stereotyped choices (↑ more bias)")
@@ -602,7 +601,12 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
602
  with gr.Column(variant="compact"):
603
  gr.Markdown("#### Attribute Group 2")
604
  attribute_bias_html_antistereo = gr.HTML()
605
- with gr.Column(scale=1):
 
 
 
 
 
606
  interpretation_msg = gr.HTML(value="Interpretation: Stereotype Score metric details in <a href='https://arxiv.org/abs/2004.09456'>Nadeem'20<a>", visible=False)
607
  save_msg = gr.HTML(value="<span style=\"color:black\">Bias test result saved! </span>",
608
  visible=False)
 
578
  with gr.Row():
579
  with gr.Column(scale=2):
580
  gr.Markdown("### Bias Test Results")
581
+
 
582
  with gr.Row():
583
  with gr.Column(scale=2):
584
  lbl_model_bias = gr.Markdown("**Model Bias** - % stereotyped choices (↑ more bias)")
 
601
  with gr.Column(variant="compact"):
602
  gr.Markdown("#### Attribute Group 2")
603
  attribute_bias_html_antistereo = gr.HTML()
604
+
605
+ # with gr.Row():
606
+ # with gr.Column(scale=1):
607
+ # gr.Markdown("### Interpretation")
608
+ with gr.Row():
609
+ with gr.Accordion("Interpretation", open=False, visible=True):
610
  interpretation_msg = gr.HTML(value="Interpretation: Stereotype Score metric details in <a href='https://arxiv.org/abs/2004.09456'>Nadeem'20<a>", visible=False)
611
  save_msg = gr.HTML(value="<span style=\"color:black\">Bias test result saved! </span>",
612
  visible=False)