BaiqiL commited on
Commit
434199b
1 Parent(s): 7be996f

[fix] human rating displaying bug

Browse files
Files changed (2) hide show
  1. GenAI-Bench_tags.json +4 -4
  2. main.py +1 -3
GenAI-Bench_tags.json CHANGED
@@ -13681,7 +13681,7 @@
13681
  ]
13682
  },
13683
  "01423": {
13684
- "prompt": "An eco-friendly toothbrush made from bamboo is not placed next to a glass of water.",
13685
  "basic": [
13686
  "Attribute",
13687
  "Spatial Relation"
@@ -13711,7 +13711,7 @@
13711
  "advanced": []
13712
  },
13713
  "01426": {
13714
- "prompt": "The wooden cutting board is topped with fresh bread and a sharp knife, and the knife is not in contact with the bread.",
13715
  "basic": [
13716
  "Attribute",
13717
  "Action Relation",
@@ -14571,7 +14571,7 @@
14571
  ]
14572
  },
14573
  "01498": {
14574
- "prompt": "A woman in a denim apron crafting a latte for a woman in a business suit checking her watch.",
14575
  "basic": [
14576
  "Part Relation",
14577
  "Action Relation"
@@ -14628,7 +14628,7 @@
14628
  ]
14629
  },
14630
  "01503": {
14631
- "prompt": "A person in a flour-splattered apron offering a fresh croissant to a person in a superhero costume.",
14632
  "basic": [
14633
  "Part Relation",
14634
  "Action Relation",
 
13681
  ]
13682
  },
13683
  "01423": {
13684
+ "prompt": "An eco-friendly toothbrush is not placed next to a glass of water made from bamboo.",
13685
  "basic": [
13686
  "Attribute",
13687
  "Spatial Relation"
 
13711
  "advanced": []
13712
  },
13713
  "01426": {
13714
+ "prompt": "The wooden cutting board is topped with fresh bread and a sharp knife, which is not in contact with the bread.",
13715
  "basic": [
13716
  "Attribute",
13717
  "Action Relation",
 
14571
  ]
14572
  },
14573
  "01498": {
14574
+ "prompt": "A woman in a denim apron crafting a latte for a woman in a business suit checking their watch.",
14575
  "basic": [
14576
  "Part Relation",
14577
  "Action Relation"
 
14628
  ]
14629
  },
14630
  "01503": {
14631
+ "prompt": "A person in a dough-splattered apron offering a fresh croissant to a person in a superhero costume.",
14632
  "basic": [
14633
  "Part Relation",
14634
  "Action Relation",
main.py CHANGED
@@ -59,8 +59,6 @@ if filtered_data:
59
  df = df.reindex(columns=["id", "prompt", "basic", "advanced", "DALLE_3", "DALLE_3_Human", "DeepFloyd_I_XL_v1",
60
  "DeepFloyd_I_XL_v1_Human", "Midjourney_6", "Midjourney_6_Human", "SDXL_2_1",
61
  "SDXL_2_1_Human", "SDXL_Base", "SDXL_Base_Human", "SDXL_Turbo", "SDXL_Turbo_Human"])
62
- # df['pic'] = df['pic'].apply(lambda x: f'< img src="{x}" width="60">')
63
- # st.write(df.to_html(escape=False), unsafe_allow_html=True)
64
  st.dataframe(data=df, width = 4096, height = 800,
65
  column_config={
66
  "name": "Data Explorer",
@@ -71,7 +69,7 @@ if filtered_data:
71
  required=None,
72
  default=None, max_chars=None, validate=None),
73
  "DALLE_3": st.column_config.ImageColumn(label="DALLE_3", width="small", help=None),
74
- "DAllE_3_Human": st.column_config.NumberColumn("Rating Human", format="%.1f", width="small", help="Rating Human for DALLE_3"),
75
  "DeepFloyd_I_XL_v1": st.column_config.ImageColumn(label="DeepFloyd", width="small",
76
  help="DeepFloyd_I_XL_v1"),
77
  "DeepFloyd_I_XL_v1_Human": st.column_config.NumberColumn("Rating Human", format="%.1f",
 
59
  df = df.reindex(columns=["id", "prompt", "basic", "advanced", "DALLE_3", "DALLE_3_Human", "DeepFloyd_I_XL_v1",
60
  "DeepFloyd_I_XL_v1_Human", "Midjourney_6", "Midjourney_6_Human", "SDXL_2_1",
61
  "SDXL_2_1_Human", "SDXL_Base", "SDXL_Base_Human", "SDXL_Turbo", "SDXL_Turbo_Human"])
 
 
62
  st.dataframe(data=df, width = 4096, height = 800,
63
  column_config={
64
  "name": "Data Explorer",
 
69
  required=None,
70
  default=None, max_chars=None, validate=None),
71
  "DALLE_3": st.column_config.ImageColumn(label="DALLE_3", width="small", help=None),
72
+ "DALLE_3_Human": st.column_config.NumberColumn("Rating Human", format="%.1f", width="small", help="Rating Human for DALLE_3"),
73
  "DeepFloyd_I_XL_v1": st.column_config.ImageColumn(label="DeepFloyd", width="small",
74
  help="DeepFloyd_I_XL_v1"),
75
  "DeepFloyd_I_XL_v1_Human": st.column_config.NumberColumn("Rating Human", format="%.1f",