Spaces:
Runtime error
Runtime error
Fixing labels and explainers
Browse files
app.py
CHANGED
@@ -73,17 +73,17 @@ with gr.Blocks(title=TITLE) as demo:
|
|
73 |
a = gr.Text(label="Number of images")
|
74 |
with gr.Row():
|
75 |
with gr.Column(scale=1):
|
76 |
-
c = gr.Plot(label="
|
77 |
c_desc = gr.Text(label="")
|
78 |
with gr.Column(scale=1):
|
79 |
-
b = gr.Plot(label="
|
80 |
b_desc = gr.Text(label="")
|
81 |
with gr.Column(scale=2):
|
82 |
-
d = gr.Plot(label="
|
83 |
|
84 |
gr.Markdown(f"The 'Model makeup' plot corresponds to the number of images from the cluster that come from each of the TTI systems that we are comparing: Dall-E 2, Stable Diffusion v.1.4. and Stable Diffusion v.2.")
|
85 |
-
gr.Markdown(
|
86 |
-
gr.Markdown(f"The 'Ethnicity label makeup' plot corresponds to the number of images from each of the 18 ethnicities used in the prompts. A blank value means unmarked ethnicity")
|
87 |
demo.load(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|
88 |
num_clusters.change(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|
89 |
cluster_id.change(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|
|
|
73 |
a = gr.Text(label="Number of images")
|
74 |
with gr.Row():
|
75 |
with gr.Column(scale=1):
|
76 |
+
c = gr.Plot(label="How many images in the cluster are from which models?")
|
77 |
c_desc = gr.Text(label="")
|
78 |
with gr.Column(scale=1):
|
79 |
+
b = gr.Plot(label="How many genders are represented, based on the input prompts?")
|
80 |
b_desc = gr.Text(label="")
|
81 |
with gr.Column(scale=2):
|
82 |
+
d = gr.Plot(label="Which ethnicities are present, based on the input prompts?")
|
83 |
|
84 |
gr.Markdown(f"The 'Model makeup' plot corresponds to the number of images from the cluster that come from each of the TTI systems that we are comparing: Dall-E 2, Stable Diffusion v.1.4. and Stable Diffusion v.2.")
|
85 |
+
gr.Markdown('The Gender plot shows the number of images based on the input prompts that used the words male, female, non-binary, and unmarked, which we label "person".')
|
86 |
+
gr.Markdown(f"The 'Ethnicity label makeup' plot corresponds to the number of images from each of the 18 ethnicities used in the prompts. A blank value means unmarked ethnicity.")
|
87 |
demo.load(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|
88 |
num_clusters.change(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|
89 |
cluster_id.change(fn=show_cluster, inputs=[cluster_id, num_clusters], outputs=[a, b, b_desc, c, c_desc, d, gallery])
|