Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,15 +25,15 @@ dff3_3 = pd.read_csv(file_path3_3)
|
|
| 25 |
|
| 26 |
|
| 27 |
def display_table(table_choice):
|
| 28 |
-
if table_choice == "Option 1.1: New Image Generation Quality Ranking":
|
| 29 |
return dff1_1
|
| 30 |
elif table_choice == "Option 2: Image Revision Test Ranking":
|
| 31 |
return dff1_2
|
| 32 |
-
elif table_choice == "Option 1.2: Safety and Responsibility Ranking":
|
| 33 |
return dff1_3
|
| 34 |
-
elif table_choice == "
|
| 35 |
return dff2_1
|
| 36 |
-
elif table_choice == "
|
| 37 |
return dff2_2
|
| 38 |
elif table_choice == "----Option 1.1.3: Dimension 3-Image Aesthetics":
|
| 39 |
return dff2_3
|
|
@@ -56,13 +56,14 @@ with gr.Blocks() as demo:
|
|
| 56 |
|
| 57 |
|
| 58 |
with gr.Column():
|
| 59 |
-
dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Test Ranking", "Option 1.1: New Image Generation Quality Ranking",
|
| 60 |
-
"
|
| 61 |
-
"----Option 1.1.
|
|
|
|
| 62 |
"Option 2: Image Revision Test Ranking", "--Option 2.1: Dimension 1-Alignment with Reference",
|
| 63 |
"--Option 2.2: Dimension 2-Image Integrity","--Option 2.3: Dimension 3-Image Aesthetics"],
|
| 64 |
label="Select a Leaderboard",
|
| 65 |
-
value="Option 1.1: New Image Generation Quality Ranking")
|
| 66 |
|
| 67 |
output = gr.DataFrame(value=dff1_1, max_height =900)
|
| 68 |
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
def display_table(table_choice):
|
| 28 |
+
if table_choice == "--Option 1.1: New Image Generation Quality Ranking":
|
| 29 |
return dff1_1
|
| 30 |
elif table_choice == "Option 2: Image Revision Test Ranking":
|
| 31 |
return dff1_2
|
| 32 |
+
elif table_choice == "--Option 1.2: Safety and Responsibility Ranking":
|
| 33 |
return dff1_3
|
| 34 |
+
elif table_choice == "----Option 1.1.1: Dimension 1-Alignment with Instruction":
|
| 35 |
return dff2_1
|
| 36 |
+
elif table_choice == "----Option 1.1.2: Dimension 2-Image Integrity":
|
| 37 |
return dff2_2
|
| 38 |
elif table_choice == "----Option 1.1.3: Dimension 3-Image Aesthetics":
|
| 39 |
return dff2_3
|
|
|
|
| 56 |
|
| 57 |
|
| 58 |
with gr.Column():
|
| 59 |
+
dropdown = gr.Dropdown(choices=["Option 1: New Image Generation Test Ranking", "--Option 1.1: New Image Generation Quality Ranking",
|
| 60 |
+
"----Option 1.1.1: Dimension 1-Alignment with Instruction",
|
| 61 |
+
"----Option 1.1.2: Dimension 2-Image Integrity",
|
| 62 |
+
"----Option 1.1.3: Dimension 3-Image Aesthetics", "--Option 1.2: Safety and Responsibility Ranking",
|
| 63 |
"Option 2: Image Revision Test Ranking", "--Option 2.1: Dimension 1-Alignment with Reference",
|
| 64 |
"--Option 2.2: Dimension 2-Image Integrity","--Option 2.3: Dimension 3-Image Aesthetics"],
|
| 65 |
label="Select a Leaderboard",
|
| 66 |
+
value="--Option 1.1: New Image Generation Quality Ranking")
|
| 67 |
|
| 68 |
output = gr.DataFrame(value=dff1_1, max_height =900)
|
| 69 |
|