CathieDaDa commited on
Commit
0f9fe05
·
verified ·
1 Parent(s): 303d711

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -24
app.py CHANGED
@@ -55,31 +55,32 @@ with gr.Blocks() as demo:
55
  For access to the full research report, please contact Prof. Jiang at jiangz@hku.hk.
56
  """
57
  )
58
-
59
- with gr.Tab("**New Image Generation Test Ranking**"):
60
- with gr.Column():
61
- dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Quality Ranking",
62
- "--Option 1.1: Dimension 1-Alignment with Instruction",
63
- "--Option 1.2: Dimension 2-Image Integrity",
64
- "--Option 1.3: Dimension 3-Image Aesthetics",
65
- "Option 2: Safety and Responsibility Ranking"],
66
- label="Select a Leaderboard",
67
- value="Option 1: New Image Generation Quality Ranking")
 
 
68
 
69
- output = gr.DataFrame(value=dff1_1, max_height =900)
70
-
71
- dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
72
-
73
- with gr.Tab("**Image Revision Test Ranking**"):
74
- with gr.Column():
75
- dropdown2 = gr.Dropdown(choices=["Option 1: Image Revision Test Ranking", "--Option 1.1: Dimension 1-Alignment with Reference",
76
- "--Option 1.2: Dimension 2-Revised Image Integrity",
77
- "--Option 1.3: Dimension 3-Revised Image Aesthetics"],
78
- label="Select a Leaderboard",
79
- value="Option 1: Image Revision Test Ranking")
 
80
 
81
- output2 = gr.DataFrame(value=dff1_2, max_height =900)
82
-
83
- dropdown.change(fn=display_table2, inputs=dropdown2, outputs=output2)
84
 
85
  demo.launch()
 
55
  For access to the full research report, please contact Prof. Jiang at jiangz@hku.hk.
56
  """
57
  )
58
+ with gr.Column():
59
+ with gr.Tab("New Image Generation Test Ranking"):
60
+ with gr.Column():
61
+ dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Quality Ranking",
62
+ "--Option 1.1: Dimension 1-Alignment with Instruction",
63
+ "--Option 1.2: Dimension 2-Image Integrity",
64
+ "--Option 1.3: Dimension 3-Image Aesthetics",
65
+ "Option 2: Safety and Responsibility Ranking"],
66
+ label="Select a Leaderboard",
67
+ value="Option 1: New Image Generation Quality Ranking")
68
+
69
+ output = gr.DataFrame(value=dff1_1, max_height =900)
70
 
71
+ dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
72
+
73
+
74
+ with gr.Tab("Image Revision Test Ranking"):
75
+ with gr.Column():
76
+ dropdown2 = gr.Dropdown(choices=["Option 1: Image Revision Test Ranking", "--Option 1.1: Dimension 1-Alignment with Reference",
77
+ "--Option 1.2: Dimension 2-Revised Image Integrity",
78
+ "--Option 1.3: Dimension 3-Revised Image Aesthetics"],
79
+ label="Select a Leaderboard",
80
+ value="Option 1: Image Revision Test Ranking")
81
+
82
+ output2 = gr.DataFrame(value=dff1_2, max_height =900)
83
 
84
+ dropdown.change(fn=display_table2, inputs=dropdown2, outputs=output2)
 
 
85
 
86
  demo.launch()