RKocielnik commited on
Commit
7d33ec1
·
verified ·
1 Parent(s): 454c469

Small updates to comments

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -317,7 +317,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
317
  openai_gen_row_update = gr.Row(visible=True) #update
318
  tested_model_dropdown_update = gr.Dropdown(visible=False) #update
319
  tested_model_row_update = gr.Row(visible=False) #update
320
- # additional sentences disabled by default
321
  gen_additional_sentence_checkbox_update = gr.Checkbox(visible=False) #update
322
 
323
  test_sentences = []
@@ -389,7 +389,7 @@ def retrieveSentences(gr1, gr2, att1, att2, progress=gr.Progress()):
389
  tested_model_dropdown_update = gr.Dropdown(visible=True) #update
390
  tested_model_row_update = gr.Row(visible=True) #update
391
 
392
- # still give the option to generate more sentences
393
  gen_additional_sentence_checkbox_update = gr.Checkbox(visible=True) #update
394
 
395
  else:
@@ -821,7 +821,7 @@ with gr.Blocks(theme=soft, title="Social Bias Testing in Language Models",
821
  s2_btn = gr.Button(value="Step 2: Test Sentences", variant="secondary", visible=True, interactive=False, scale=0, min_width=230, size='md')#, size='sm')#.style(size='sm')
822
  s3_btn = gr.Button(value="Step 3: Bias Testing", variant="secondary", visible=True, interactive=False, scale=0, min_width=230, size='md')#, size='sm')#.style(size='sm')
823
  err_message = gr.Markdown("", visible=False, elem_id="err_msg_elem")
824
- bar_progress = gr.Markdown("⠀⠀⠀", visible=True, min_height="45px", container=False)
825
 
826
  # Page 1
827
  with gr.Column(visible=True) as tab1:
 
317
  openai_gen_row_update = gr.Row(visible=True) #update
318
  tested_model_dropdown_update = gr.Dropdown(visible=False) #update
319
  tested_model_row_update = gr.Row(visible=False) #update
320
+ # Additional sentences disabled by default
321
  gen_additional_sentence_checkbox_update = gr.Checkbox(visible=False) #update
322
 
323
  test_sentences = []
 
389
  tested_model_dropdown_update = gr.Dropdown(visible=True) #update
390
  tested_model_row_update = gr.Row(visible=True) #update
391
 
392
+ # Still give the option to generate more sentences
393
  gen_additional_sentence_checkbox_update = gr.Checkbox(visible=True) #update
394
 
395
  else:
 
821
  s2_btn = gr.Button(value="Step 2: Test Sentences", variant="secondary", visible=True, interactive=False, scale=0, min_width=230, size='md')#, size='sm')#.style(size='sm')
822
  s3_btn = gr.Button(value="Step 3: Bias Testing", variant="secondary", visible=True, interactive=False, scale=0, min_width=230, size='md')#, size='sm')#.style(size='sm')
823
  err_message = gr.Markdown("", visible=False, elem_id="err_msg_elem")
824
+ bar_progress = gr.Markdown("", visible=True, min_height="40px", container=False)
825
 
826
  # Page 1
827
  with gr.Column(visible=True) as tab1: