CathieDaDa commited on
Commit
0e71624
·
verified ·
1 Parent(s): 1026948

Update app.py

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