Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,29 +56,30 @@ with gr.Blocks() as demo:
|
|
| 56 |
"""
|
| 57 |
)
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
|
|
|
|
|
|
| 68 |
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
|
| 72 |
|
| 73 |
-
with gr.
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
|
|
|
|
|
|
|
|
|
| 79 |
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
dropdown.change(fn=display_table2, inputs=dropdown2, outputs=output2)
|
| 83 |
|
| 84 |
demo.launch()
|
|
|
|
| 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()
|