Update app.py
Browse files33 unmodified lines34353637383940415 unmodified lines4748495051525333 unmodified lineswith gr.Blocks() as demo:gr.Markdown("# Text-to-Image Diffusion Model Average Faces")gr.Markdown("### We ran 150 professions through 3 diffusion models to examine what they generate.")gr.Markdown("#### Choose one of the professions and adjectives and see the average face generated by each model.")with gr.Row():with gr.Column():5 unmodified lineslabel="Average images", show_label=False, elem_id="gallery").style(grid=[0,3], height="auto")gr.Markdown("The three models are: Stable Diffusion v.1.4, Stable Diffusion v.2, and Dall-E 2.")gr.Markdown("If you see a black square above, we weren't able to compute an average face for this profession, sorry!")btn.click(fn=get_averages, inputs=[adj,prof], outputs=gallery)33 unmodified lines34353637383940415 unmodified lines4748495051525333 unmodified lineswith gr.Blocks() as demo:gr.Markdown("# Text-to-Image Diffusion Model Average Faces")gr.Markdown("### We ran 150 professions through 3 text-to-image diffusion models to examine what they generate.")gr.Markdown("#### Choose one of the professions and adjectives from the dropdown menus and see the average face generated by each model.")with gr.Row():with gr.Column():5 unmodified lineslabel="Average images", show_label=False, elem_id="gallery").style(grid=[0,3], height="auto")gr.Markdown("The three models are: Stable Diffusion v.1.4, Stable Diffusion v.2, and Dall-E 2.")gr.Markdown("If you see a black square above, we weren't able to compute an average face for this profession!")btn.click(fn=get_averages, inputs=[adj,prof], outputs=gallery)
app.py+3-3