CathieDaDa commited on
Commit
a045a46
·
verified ·
1 Parent(s): b2d200d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -25,17 +25,17 @@ dff3_3 = pd.read_csv(file_path3_3)
25
 
26
 
27
  def display_table(table_choice):
28
- if table_choice == "Option 1: Image Generation Test Ranking":
29
  return dff1_1
30
  elif table_choice == "Option 2: Image Revision Test Ranking":
31
  return dff1_2
32
- elif table_choice == "Option 3: Safety and Responsibility Ranking":
33
  return dff1_3
34
- elif table_choice == "--Option 1.1: Dimension 1-Alignment with Instruction":
35
  return dff2_1
36
- elif table_choice == "--Option 1.2: Dimension 2-Image Integrity":
37
  return dff2_2
38
- elif table_choice == "--Option 1.3: Dimension 3-Image Aesthetics":
39
  return dff2_3
40
  elif table_choice == "--Option 2.1: Dimension 1-Alignment with Reference":
41
  return dff3_1
@@ -56,11 +56,11 @@ with gr.Blocks() as demo:
56
 
57
 
58
  with gr.Column():
59
- dropdown = gr.Dropdown(choices=["Option 1: Image Generation Test Ranking", "--Option 1.1: Dimension 1-Alignment with Instruction",
60
- "--Option 1.2: Dimension 2-Image Integrity", "--Option 1.3: Dimension 3-Image Aesthetics",
 
61
  "Option 2: Image Revision Test Ranking", "--Option 2.1: Dimension 1-Alignment with Reference",
62
- "--Option 2.2: Dimension 2-Image Integrity","--Option 2.3: Dimension 3-Image Aesthetics",
63
- "Option 3: Safety and Responsibility Ranking"],
64
  label="Select a Leaderboard",
65
  value="Option 1: Image Generation Test Ranking")
66
 
 
25
 
26
 
27
  def display_table(table_choice):
28
+ if table_choice == "Option 1: New Image Generation Test Ranking--Option 1.1: New Image Generation Quality Ranking":
29
  return dff1_1
30
  elif table_choice == "Option 2: Image Revision Test Ranking":
31
  return dff1_2
32
+ elif table_choice == "Option 1: New Image Generation Test Ranking--Option 1.2: Safety and Responsibility Ranking":
33
  return dff1_3
34
+ elif table_choice == "----Option 1.1.1: Dimension 1-Alignment with Instruction":
35
  return dff2_1
36
+ elif table_choice == "----Option 1.1.2: Dimension 2-Image Integrity":
37
  return dff2_2
38
+ elif table_choice == "----Option 1.1.3: Dimension 3-Image Aesthetics":
39
  return dff2_3
40
  elif table_choice == "--Option 2.1: Dimension 1-Alignment with Reference":
41
  return dff3_1
 
56
 
57
 
58
  with gr.Column():
59
+ dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Test Ranking--Option 1.1: New Image Generation Quality Ranking", "----Option 1.1: Dimension 1-Alignment with Instruction",
60
+ "----Option 1.2: Dimension 2-Image Integrity","Option 1: New Image Generation Test Ranking--Option 1.2: Safety and Responsibility Ranking",
61
+ "----Option 1.3: Dimension 3-Image Aesthetics",
62
  "Option 2: Image Revision Test Ranking", "--Option 2.1: Dimension 1-Alignment with Reference",
63
+ "--Option 2.2: Dimension 2-Image Integrity","--Option 2.3: Dimension 3-Image Aesthetics"],
 
64
  label="Select a Leaderboard",
65
  value="Option 1: Image Generation Test Ranking")
66