Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,9 @@ clusters_dicts = dict(
|
|
23 |
cluster_summaries_by_size = json.load(open("clusters/cluster_summaries_by_size.json"))
|
24 |
|
25 |
prompts = pd.read_csv("promptsadjectives.csv")
|
26 |
-
professions =
|
|
|
|
|
27 |
models = {
|
28 |
"All": "All Models",
|
29 |
"SD_14": "Stable Diffusion 1.4",
|
@@ -240,7 +242,13 @@ with gr.Blocks(title=TITLE) as demo:
|
|
240 |
)
|
241 |
profession_choices_overview = gr.Dropdown(
|
242 |
professions,
|
243 |
-
value=[
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
label="Which professions do you want to compare?",
|
245 |
multiselect=True,
|
246 |
interactive=True,
|
|
|
23 |
cluster_summaries_by_size = json.load(open("clusters/cluster_summaries_by_size.json"))
|
24 |
|
25 |
prompts = pd.read_csv("promptsadjectives.csv")
|
26 |
+
professions = ["all professions"] + list(
|
27 |
+
sorted([p.lower() for p in prompts["Occupation-Noun"].tolist()])
|
28 |
+
)
|
29 |
models = {
|
30 |
"All": "All Models",
|
31 |
"SD_14": "Stable Diffusion 1.4",
|
|
|
242 |
)
|
243 |
profession_choices_overview = gr.Dropdown(
|
244 |
professions,
|
245 |
+
value=[
|
246 |
+
"all professions",
|
247 |
+
"CEO",
|
248 |
+
"director",
|
249 |
+
"social assistant",
|
250 |
+
"social worker",
|
251 |
+
],
|
252 |
label="Which professions do you want to compare?",
|
253 |
multiselect=True,
|
254 |
interactive=True,
|