Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,21 +29,21 @@ def display_table(table_choice):
|
|
| 29 |
return dff1_1
|
| 30 |
elif table_choice == "Option 2: Safety and Responsibility Ranking":
|
| 31 |
return dff1_3
|
| 32 |
-
elif table_choice == "
|
| 33 |
return dff2_1
|
| 34 |
-
elif table_choice == "
|
| 35 |
return dff2_2
|
| 36 |
-
elif table_choice == "
|
| 37 |
return dff2_3
|
| 38 |
|
| 39 |
def display_table2(table_choice):
|
| 40 |
if table_choice == "Image Revision Test Ranking":
|
| 41 |
return dff1_2
|
| 42 |
-
elif table_choice == "
|
| 43 |
return dff3_1
|
| 44 |
-
elif table_choice == "
|
| 45 |
return dff3_2
|
| 46 |
-
elif table_choice == "
|
| 47 |
return dff3_3
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
|
@@ -55,12 +55,12 @@ 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.Tab("New Image Generation"):
|
| 59 |
with gr.Column():
|
| 60 |
dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Quality Ranking",
|
| 61 |
-
"
|
| 62 |
-
"
|
| 63 |
-
"
|
| 64 |
"Option 2: Safety and Responsibility Ranking"],
|
| 65 |
label="Select a Leaderboard",
|
| 66 |
value="Option 1: New Image Generation Quality Ranking")
|
|
@@ -69,11 +69,11 @@ with gr.Blocks() as demo:
|
|
| 69 |
|
| 70 |
dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
|
| 71 |
|
| 72 |
-
with gr.Tab("Image Revision"):
|
| 73 |
with gr.Column():
|
| 74 |
-
dropdown2 = gr.Dropdown(choices=["Image Revision Test Ranking", "
|
| 75 |
-
"
|
| 76 |
-
"
|
| 77 |
label="Select a Leaderboard",
|
| 78 |
value="Image Revision Test Ranking")
|
| 79 |
|
|
|
|
| 29 |
return dff1_1
|
| 30 |
elif table_choice == "Option 2: Safety and Responsibility Ranking":
|
| 31 |
return dff1_3
|
| 32 |
+
elif table_choice == "----Dimension 1-Alignment with Instruction":
|
| 33 |
return dff2_1
|
| 34 |
+
elif table_choice == "----Dimension 2-Image Integrity":
|
| 35 |
return dff2_2
|
| 36 |
+
elif table_choice == "----Dimension 3-Image Aesthetics":
|
| 37 |
return dff2_3
|
| 38 |
|
| 39 |
def display_table2(table_choice):
|
| 40 |
if table_choice == "Image Revision Test Ranking":
|
| 41 |
return dff1_2
|
| 42 |
+
elif table_choice == "----Dimension 1-Alignment with Reference":
|
| 43 |
return dff3_1
|
| 44 |
+
elif table_choice == "----Dimension 2-Revised Image Integrity":
|
| 45 |
return dff3_2
|
| 46 |
+
elif table_choice == "----Dimension 3-Revised Image Aesthetics":
|
| 47 |
return dff3_3
|
| 48 |
|
| 49 |
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.Tab( gr.Markdown("** New Image Generation **")):
|
| 59 |
with gr.Column():
|
| 60 |
dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Quality Ranking",
|
| 61 |
+
"----Dimension 1-Alignment with Instruction",
|
| 62 |
+
"----Dimension 2-Image Integrity",
|
| 63 |
+
"----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")
|
|
|
|
| 69 |
|
| 70 |
dropdown.change(fn=display_table, inputs=dropdown, outputs=output)
|
| 71 |
|
| 72 |
+
with gr.Tab(gr.Markdown("==Image Revision==")):
|
| 73 |
with gr.Column():
|
| 74 |
+
dropdown2 = gr.Dropdown(choices=["Image Revision Test Ranking", "----Dimension 1-Alignment with Reference",
|
| 75 |
+
"----Dimension 2-Revised Image Integrity",
|
| 76 |
+
"----Dimension 3-Revised Image Aesthetics"],
|
| 77 |
label="Select a Leaderboard",
|
| 78 |
value="Image Revision Test Ranking")
|
| 79 |
|