Emily McMilin commited on
Commit
c8a64af
1 Parent(s): a458815

examples without occupations for gender nudge. break down directions more.

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -297,7 +297,7 @@ place_example = [
297
  'PLACE',
298
  "False",
299
  1,
300
- 'Born in PLACE, she was a teacher.'
301
  ]
302
 
303
  date_example = [
@@ -317,8 +317,8 @@ subreddit_example = [
317
  ', '.join(SUBREDDITS),
318
  'SUBREDDIT',
319
  "False",
320
- 3,
321
- 'I saw in r/SUBREDDIT that she is a hacker.'
322
  ]
323
 
324
  own_model_example = [
@@ -387,8 +387,8 @@ with demo:
387
  )
388
 
389
 
390
- gr.Markdown(
391
- f"B) Pick a pre-loaded BERT-family model of interest on the right. C) Or select `{OWN_MODEL_NAME}`, then add the mame of any other Hugging Face model that supports the [fill-mask](https://huggingface.co/models?pipeline_tag=fill-mask) task on the right (note: this may take some time to load).")
392
 
393
  with gr.Row():
394
  model_name = gr.Radio(
@@ -401,7 +401,8 @@ with demo:
401
  )
402
 
403
  gr.Markdown("D) Pick if you want to the predictions normalied to these gendered terms only.")
404
- gr.Markdown("E) Also tell the demo what special token you will use in your input text, that you would like replaced with the spectrum of values you listed above, and F) the degree of polynomial fit used for high-lighting possible dose response trend ")
 
405
 
406
 
407
  with gr.Row():
 
297
  'PLACE',
298
  "False",
299
  1,
300
+ 'She was raised in PLACE.'
301
  ]
302
 
303
  date_example = [
 
317
  ', '.join(SUBREDDITS),
318
  'SUBREDDIT',
319
  "False",
320
+ 1,
321
+ 'I saw in r/SUBREDDIT that she was born in 1911.'
322
  ]
323
 
324
  own_model_example = [
 
387
  )
388
 
389
 
390
+ gr.Markdown("B) Pick a pre-loaded BERT-family model of interest on the right.")
391
+ gr.Markdown(f"Or C) select `{OWN_MODEL_NAME}`, then add the mame of any other Hugging Face model that supports the [fill-mask](https://huggingface.co/models?pipeline_tag=fill-mask) task on the right (note: this may take some time to load).")
392
 
393
  with gr.Row():
394
  model_name = gr.Radio(
 
401
  )
402
 
403
  gr.Markdown("D) Pick if you want to the predictions normalied to these gendered terms only.")
404
+ gr.Markdown("E) Also tell the demo what special token you will use in your input text, that you would like replaced with the spectrum of values you listed above.")
405
+ gr.Markdown("And F) the degree of polynomial fit used for high-lighting possible dose response trend.")
406
 
407
 
408
  with gr.Row():