Update app.py
Browse files
app.py
CHANGED
@@ -34,8 +34,8 @@ def get_averages(adj, profession):
|
|
34 |
with gr.Blocks() as demo:
|
35 |
|
36 |
gr.Markdown("# Text-to-Image Diffusion Model Average Faces")
|
37 |
-
gr.Markdown("### We ran 150 professions through 3 diffusion models to examine what they generate.")
|
38 |
-
gr.Markdown("#### Choose one of the professions and adjectives and see the average face generated by each model.")
|
39 |
with gr.Row():
|
40 |
|
41 |
with gr.Column():
|
@@ -47,7 +47,7 @@ with gr.Blocks() as demo:
|
|
47 |
label="Average images", show_label=False, elem_id="gallery"
|
48 |
).style(grid=[0,3], height="auto")
|
49 |
gr.Markdown("The three models are: Stable Diffusion v.1.4, Stable Diffusion v.2, and Dall-E 2.")
|
50 |
-
gr.Markdown("If you see a black square above, we weren't able to compute an average face for this profession
|
51 |
|
52 |
|
53 |
btn.click(fn=get_averages, inputs=[adj,prof], outputs=gallery)
|
|
|
34 |
with gr.Blocks() as demo:
|
35 |
|
36 |
gr.Markdown("# Text-to-Image Diffusion Model Average Faces")
|
37 |
+
gr.Markdown("### We ran 150 professions through 3 text-to-image diffusion models to examine what they generate.")
|
38 |
+
gr.Markdown("#### Choose one of the professions and adjectives from the dropdown menus and see the average face generated by each model.")
|
39 |
with gr.Row():
|
40 |
|
41 |
with gr.Column():
|
|
|
47 |
label="Average images", show_label=False, elem_id="gallery"
|
48 |
).style(grid=[0,3], height="auto")
|
49 |
gr.Markdown("The three models are: Stable Diffusion v.1.4, Stable Diffusion v.2, and Dall-E 2.")
|
50 |
+
gr.Markdown("If you see a black square above, we weren't able to compute an average face for this profession!")
|
51 |
|
52 |
|
53 |
btn.click(fn=get_averages, inputs=[adj,prof], outputs=gallery)
|