CathieDaDa commited on
Commit
138ffb5
·
verified ·
1 Parent(s): e98d7e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -33,17 +33,17 @@ def display_table(table_choice):
33
  return dff1_2
34
  elif table_choice == "Option 3: Safety and Responsibility Ranking":
35
  return dff1_3
36
- elif table_choice == "Option 4: Rankings of Image Generation Task by Dimensio-Alignment with Instruction":
37
  return dff2_1
38
- elif table_choice == "Option 5: Rankings of Image Generation Task by Dimension-Image Integrity":
39
  return dff2_2
40
- elif table_choice == "Option 6: Rankings of Image Generation Task by Dimension-Image Aesthetics":
41
  return dff2_3
42
- elif table_choice == "Option 7: Rankings of Image Revision Task by Dimension-Alignment with Reference":
43
  return dff3_1
44
- elif table_choice == "Option 8: Rankings of Image Revision Task by Dimension-Image Integrity":
45
  return dff3_2
46
- elif table_choice == "Option 9: Rankings of Image Revision Task by Dimension-Image Aesthetics":
47
  return dff3_3
48
 
49
  with gr.Blocks() as demo:
@@ -51,14 +51,18 @@ with gr.Blocks() as demo:
51
  """
52
  # Evaluation of Image Generation Capabilities of Artificial Intelligence Models / 人工智能模型图像生成能力综合评测
53
  by Zhenhui (Jack) Jiang<sup>1</sup>, Zhengyu Wu<sup>1</sup>, Jiaxin Li<sup>1</sup>, Haozhe Xu<sup>2</sup>, Yifan Wu<sup>1</sup>,Yi Lu<sup>1</sup>/ 蒋镇辉<sup>1</sup>,武正昱<sup>1</sup>,李佳欣<sup>1</sup>,徐昊哲<sup>2</sup>,吴轶凡<sup>1</sup>,鲁艺<sup>1</sup><br>
54
- <sup>1</sup>HKU Business School, <sup>2</sup>Shool of Management, Xi'an Jiaotong University<br>
55
  For access to the full research report, please contact Prof. Jiang at jiangz@hku.hk.
56
  """
57
  )
58
 
59
 
60
  with gr.Row():
61
- dropdown = gr.Dropdown(choices=["Option 1: Image Generation Test Ranking", "Option 2: Image Revision Test Ranking", "Option 3: Safety and Responsibility Ranking","Option 4: Rankings of Image Generation Task by Dimensio-Alignment with Instruction","Option 5: Rankings of Image Generation Task by Dimension-Image Integrity","Option 6: Rankings of Image Generation Task by Dimension-Image Aesthetics","Option 7: Rankings of Image Revision Task by Dimension-Alignment with Reference","Option 8: Rankings of Image Revision Task by Dimension-Image Integrity","Option 9: Rankings of Image Revision Task by Dimension-Image Aesthetics"],
 
 
 
 
62
  label="Select a Leaderboard",
63
  value="Option 1: Image Generation Test Ranking") # 设置默认值为"Table 1"
64
 
 
33
  return dff1_2
34
  elif table_choice == "Option 3: Safety and Responsibility Ranking":
35
  return dff1_3
36
+ elif table_choice == " Option 1.1: Dimension 1-Alignment with Instruction":
37
  return dff2_1
38
+ elif table_choice == " Option 1.2: Dimension 2-Image Integrity":
39
  return dff2_2
40
+ elif table_choice == " Option 1.3: Dimension 3-Image Aesthetics":
41
  return dff2_3
42
+ elif table_choice == " Option 2.1: Dimension 1-Alignment with Reference":
43
  return dff3_1
44
+ elif table_choice == " Option 2.2: Dimension 2-Image Integrity":
45
  return dff3_2
46
+ elif table_choice == " Option 2.3: Dimension 3-Image Aesthetics":
47
  return dff3_3
48
 
49
  with gr.Blocks() as demo:
 
51
  """
52
  # Evaluation of Image Generation Capabilities of Artificial Intelligence Models / 人工智能模型图像生成能力综合评测
53
  by Zhenhui (Jack) Jiang<sup>1</sup>, Zhengyu Wu<sup>1</sup>, Jiaxin Li<sup>1</sup>, Haozhe Xu<sup>2</sup>, Yifan Wu<sup>1</sup>,Yi Lu<sup>1</sup>/ 蒋镇辉<sup>1</sup>,武正昱<sup>1</sup>,李佳欣<sup>1</sup>,徐昊哲<sup>2</sup>,吴轶凡<sup>1</sup>,鲁艺<sup>1</sup><br>
54
+ <sup>1</sup>HKU Business School, <sup>2</sup>School of Management, Xi'an Jiaotong University<br>
55
  For access to the full research report, please contact Prof. Jiang at jiangz@hku.hk.
56
  """
57
  )
58
 
59
 
60
  with gr.Row():
61
+ dropdown = gr.Dropdown(choices=["Option 1: Image Generation Test Ranking", " Option 1.1: Dimension 1-Alignment with Instruction",
62
+ " Option 1.2: Dimension 2-Image Integrity", " Option 1.3: Dimension 3-Image Aesthetics",
63
+ "Option 2: Image Revision Test Ranking", " Option 2.1: Dimension 1-Alignment with Reference",
64
+ " Option 2.2: Dimension 2-Image Integrity"," Option 2.3: Dimension 3-Image Aesthetics",
65
+ "Option 3: Safety and Responsibility Ranking"],
66
  label="Select a Leaderboard",
67
  value="Option 1: Image Generation Test Ranking") # 设置默认值为"Table 1"
68