sashavor commited on
Commit
01a7c30
1 Parent(s): 9c075ce

adding research link

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -35,7 +35,7 @@ professions = sorted([p.lower() for p in prompts['Occupation-Noun'].tolist()])
35
 
36
  with gr.Blocks() as demo:
37
  gr.Markdown("# Stable Diffusion Explorer")
38
- gr.Markdown("## Choose from the prompts below to explore how the Stable Diffusion model represents different professions")
39
  seed_choice = gr.State(0)
40
  seed_choice = 93109
41
  print("Seed choice is: " + str(seed_choice))
@@ -49,9 +49,16 @@ with gr.Blocks() as demo:
49
  choice2 = gr.Dropdown(professions, label = "Choose a second group", interactive=True)
50
  images2 = gr.Gallery(label="Images").style(grid=[3], height="auto")
51
 
 
 
 
 
 
52
  #demo.load(random_image, None, [images])
53
  choice1.change(open_ims, [adj1,choice1], [images1])
54
  choice2.change(open_ims, [adj2,choice2], [images2])
55
  adj1.change(open_ims, [adj1,choice1], [images1])
56
  adj2.change(open_ims, [adj2,choice2], [images2])
 
 
57
  demo.launch()
 
35
 
36
  with gr.Blocks() as demo:
37
  gr.Markdown("# Stable Diffusion Explorer")
38
+ gr.Markdown("## Choose from the prompts below to explore how the Stable Diffusion model represents different professions and adjectives")
39
  seed_choice = gr.State(0)
40
  seed_choice = 93109
41
  print("Seed choice is: " + str(seed_choice))
 
49
  choice2 = gr.Dropdown(professions, label = "Choose a second group", interactive=True)
50
  images2 = gr.Gallery(label="Images").style(grid=[3], height="auto")
51
 
52
+ gr.Markdown("### [Research](http://gender-decoder.katmatfield.com/static/documents/Gaucher-Friesen-Kay-JPSP-Gendered-Wording-in-Job-ads.pdf) has shown that \
53
+ certain words are considered more masculine- or feminine-coded based on how appealing job descriptions containing these words \
54
+ seemed to male and female research participants and to what extent the participants felt that they 'belonged' in that occupation.")
55
+
56
+
57
  #demo.load(random_image, None, [images])
58
  choice1.change(open_ims, [adj1,choice1], [images1])
59
  choice2.change(open_ims, [adj2,choice2], [images2])
60
  adj1.change(open_ims, [adj1,choice1], [images1])
61
  adj2.change(open_ims, [adj2,choice2], [images2])
62
+
63
+
64
  demo.launch()