emilylearning commited on
Commit
07e397d
1 Parent(s): bcdc373

Number instructions for improved readability

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -228,7 +228,7 @@ with demo:
228
  model_name = gr.Radio(
229
  MODEL_NAMES,
230
  type="value",
231
- label="Pick a preloaded BERT-like model for uncertainty evaluation (note: RoBERTa-large performance is best)...",
232
  )
233
  own_model_name = gr.Textbox(
234
  label=f"...Or, if you selected an '{OWN_MODEL_NAME}' model, put any Hugging Face pipeline model name \
@@ -237,19 +237,19 @@ with demo:
237
 
238
  with gr.Row():
239
  occ_box = gr.Radio(
240
- occs+[PICK_YOUR_OWN_LABEL], label=f"Pick an Occupation type from the Winogender Schemas evaluation set, or select '{PICK_YOUR_OWN_LABEL}'\
241
  (it need not be about an occupation).")
242
 
243
  with gr.Row():
244
  alt_input_texts = gr.Textbox(
245
  lines=2,
246
- label=f"...If you selected '{PICK_YOUR_OWN_LABEL}' above, add your own texts new-line delimited sentences here. Be sure\
247
  to include a single MASK-ed out pronoun. \
248
  If unsure on the required format, click an occupation above instead, to see some example input texts for this round.",
249
  )
250
 
251
  with gr.Row():
252
- get_text_btn = gr.Button("Load input texts")
253
 
254
  get_text_btn.click(
255
  fn=display_input_texts,
@@ -260,7 +260,7 @@ with demo:
260
  )
261
 
262
  with gr.Row():
263
- uncertain_btn = gr.Button("Get uncertainty results!")
264
  gr.Markdown(
265
  "If there is an * by a sentence number, then at least one top prediction for that sentence was non-gendered.")
266
 
 
228
  model_name = gr.Radio(
229
  MODEL_NAMES,
230
  type="value",
231
+ label="1) Pick a preloaded BERT-like model for uncertainty evaluation (note: RoBERTa-large performance is best)...",
232
  )
233
  own_model_name = gr.Textbox(
234
  label=f"...Or, if you selected an '{OWN_MODEL_NAME}' model, put any Hugging Face pipeline model name \
 
237
 
238
  with gr.Row():
239
  occ_box = gr.Radio(
240
+ occs+[PICK_YOUR_OWN_LABEL], label=f"2) Pick an Occupation type from the Winogender Schemas evaluation set, or select '{PICK_YOUR_OWN_LABEL}'\
241
  (it need not be about an occupation).")
242
 
243
  with gr.Row():
244
  alt_input_texts = gr.Textbox(
245
  lines=2,
246
+ label=f"...Or, if you selected '{PICK_YOUR_OWN_LABEL}' above, add your own texts new-line delimited sentences here. Be sure\
247
  to include a single MASK-ed out pronoun. \
248
  If unsure on the required format, click an occupation above instead, to see some example input texts for this round.",
249
  )
250
 
251
  with gr.Row():
252
+ get_text_btn = gr.Button("3) Load input texts")
253
 
254
  get_text_btn.click(
255
  fn=display_input_texts,
 
260
  )
261
 
262
  with gr.Row():
263
+ uncertain_btn = gr.Button("4) Get uncertainty results!")
264
  gr.Markdown(
265
  "If there is an * by a sentence number, then at least one top prediction for that sentence was non-gendered.")
266