meg-huggingface
commited on
Commit
·
f5a144c
1
Parent(s):
f0b9fcf
Applying new way to style 3x3 in Gallery + Adding more handling for empty adjectives/groups.
Browse files
app.py
CHANGED
|
@@ -80,13 +80,13 @@ with gr.Blocks() as demo:
|
|
| 80 |
adj1 = gr.Dropdown(adjectives, label = "Choose a first adjective (or leave this blank!)", interactive=True)
|
| 81 |
choice1 = gr.Dropdown(professions, label = "Choose a first group", interactive=True)
|
| 82 |
# seed1= gr.Dropdown(seeds, label = "Choose a random seed to compare results", value = seeds[1], interactive=True)
|
| 83 |
-
images1 = gr.Gallery(label="Images") #.style(grid=[3], height="auto")
|
| 84 |
with gr.Column():
|
| 85 |
model2 = gr.Dropdown(models, label = "Choose a model to compare results", value = models[0], interactive=True)
|
| 86 |
adj2 = gr.Dropdown(adjectives, label = "Choose a second adjective (or leave this blank!)", interactive=True)
|
| 87 |
choice2 = gr.Dropdown(professions, label = "Choose a second group", interactive=True)
|
| 88 |
# seed2= gr.Dropdown(seeds, label = "Choose a random seed to compare results", value= seeds[1], interactive=True)
|
| 89 |
-
images2 = gr.Gallery(label="Images")#.style(grid=[3], height="auto")
|
| 90 |
|
| 91 |
gr.Markdown("### [Research](http://gender-decoder.katmatfield.com/static/documents/Gaucher-Friesen-Kay-JPSP-Gendered-Wording-in-Job-ads.pdf) has shown that \
|
| 92 |
certain words are considered more masculine- or feminine-coded based on how appealing job descriptions containing these words \
|
|
|
|
| 80 |
adj1 = gr.Dropdown(adjectives, label = "Choose a first adjective (or leave this blank!)", interactive=True)
|
| 81 |
choice1 = gr.Dropdown(professions, label = "Choose a first group", interactive=True)
|
| 82 |
# seed1= gr.Dropdown(seeds, label = "Choose a random seed to compare results", value = seeds[1], interactive=True)
|
| 83 |
+
images1 = gr.Gallery(label="Images", columns=3, rows=3, height="auto") #.style(grid=[3], height="auto")
|
| 84 |
with gr.Column():
|
| 85 |
model2 = gr.Dropdown(models, label = "Choose a model to compare results", value = models[0], interactive=True)
|
| 86 |
adj2 = gr.Dropdown(adjectives, label = "Choose a second adjective (or leave this blank!)", interactive=True)
|
| 87 |
choice2 = gr.Dropdown(professions, label = "Choose a second group", interactive=True)
|
| 88 |
# seed2= gr.Dropdown(seeds, label = "Choose a random seed to compare results", value= seeds[1], interactive=True)
|
| 89 |
+
images2 = gr.Gallery(label="Images", columns=3, rows=3, height="auto")#.style(grid=[3], height="auto")
|
| 90 |
|
| 91 |
gr.Markdown("### [Research](http://gender-decoder.katmatfield.com/static/documents/Gaucher-Friesen-Kay-JPSP-Gendered-Wording-in-Job-ads.pdf) has shown that \
|
| 92 |
certain words are considered more masculine- or feminine-coded based on how appealing job descriptions containing these words \
|