Spaces:
Sleeping
Sleeping
Changed CSS for top steps group
Browse files
app.py
CHANGED
@@ -761,7 +761,8 @@ soft = gr.themes.Soft(
|
|
761 |
button_primary_background_fill='*primary_400'
|
762 |
)
|
763 |
|
764 |
-
css_adds = "#
|
|
|
765 |
#attribute_row {background: white; border-color: white;} \
|
766 |
#tested_model_row {background: white; border-color: white;} \
|
767 |
#button_row {background: white; border-color: white} \
|
@@ -811,7 +812,7 @@ css_adds = "#group_row {background: white; border-color: white;} \
|
|
811 |
with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
|
812 |
css=css_adds) as iface:
|
813 |
with gr.Row():
|
814 |
-
with gr.Group():
|
815 |
s1_btn = gr.Button(value="Step 1: Bias Specification", variant="primary", visible=True, interactive=True, size='sm')#.style(size='sm')
|
816 |
s2_btn = gr.Button(value="Step 2: Test Sentences", variant="secondary", visible=True, interactive=False, size='sm')#.style(size='sm')
|
817 |
s3_btn = gr.Button(value="Step 3: Bias Testing", variant="secondary", visible=True, interactive=False, size='sm')#.style(size='sm')
|
|
|
761 |
button_primary_background_fill='*primary_400'
|
762 |
)
|
763 |
|
764 |
+
css_adds = "#top_steps_grp {background: white; overflow: scroll; flex-direction: row;}
|
765 |
+
#group_row {background: white; border-color: white;} \
|
766 |
#attribute_row {background: white; border-color: white;} \
|
767 |
#tested_model_row {background: white; border-color: white;} \
|
768 |
#button_row {background: white; border-color: white} \
|
|
|
812 |
with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
|
813 |
css=css_adds) as iface:
|
814 |
with gr.Row():
|
815 |
+
with gr.Group(elem_id="top_steps_grp"):
|
816 |
s1_btn = gr.Button(value="Step 1: Bias Specification", variant="primary", visible=True, interactive=True, size='sm')#.style(size='sm')
|
817 |
s2_btn = gr.Button(value="Step 2: Test Sentences", variant="secondary", visible=True, interactive=False, size='sm')#.style(size='sm')
|
818 |
s3_btn = gr.Button(value="Step 3: Bias Testing", variant="secondary", visible=True, interactive=False, size='sm')#.style(size='sm')
|