Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
| 80 |
|
| 81 |
-
|
| 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()
|