Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,23 +27,23 @@ dff3_3 = pd.read_csv(file_path3_3)
|
|
| 27 |
|
| 28 |
# 定义一个函数,根据用户选择的表格返回相应的表格
|
| 29 |
def display_table(table_choice):
|
| 30 |
-
if table_choice == "Image Generation Test Ranking":
|
| 31 |
return dff1_1
|
| 32 |
-
elif table_choice == "Image Revision Test Ranking":
|
| 33 |
return dff1_2
|
| 34 |
-
elif table_choice == "Safety and Responsibility Ranking":
|
| 35 |
return dff1_3
|
| 36 |
-
elif table_choice == "Rankings of Image Generation Task by Dimensio-Alignment with Instruction":
|
| 37 |
return dff2_1
|
| 38 |
-
elif table_choice == "Rankings of Image Generation Task by Dimension-Image Integrity":
|
| 39 |
return dff2_2
|
| 40 |
-
elif table_choice == "Rankings of Image Generation Task by Dimension-Image Aesthetics":
|
| 41 |
return dff2_3
|
| 42 |
-
elif table_choice == "Rankings of Image Revision Task by Dimension-Alignment with Reference":
|
| 43 |
return dff3_1
|
| 44 |
-
elif table_choice == "Rankings of Image Revision Task by Dimension-Image Integrity":
|
| 45 |
return dff3_2
|
| 46 |
-
elif table_choice == "Rankings of Image Revision Task by Dimension-Image Aesthetics":
|
| 47 |
return dff3_3
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
|
@@ -59,7 +59,7 @@ with gr.Blocks() as demo:
|
|
| 59 |
|
| 60 |
with gr.Row():
|
| 61 |
dropdown = gr.Dropdown(choices=["Option 1: Image Generation Test Ranking", "Option 2: Image Revision Test Ranking", "Option 3: Safety and Responsibility Ranking","Option 4: Rankings of Image Generation Task by Dimensio-Alignment with Instruction","Option 5: Rankings of Image Generation Task by Dimension-Image Integrity","Option 6: Rankings of Image Generation Task by Dimension-Image Aesthetics","Option 7: Rankings of Image Revision Task by Dimension-Alignment with Reference","Option 8: Rankings of Image Revision Task by Dimension-Image Integrity","Option 9: Rankings of Image Revision Task by Dimension-Image Aesthetics"],
|
| 62 |
-
label="
|
| 63 |
value="Image Generation Test Ranking") # 设置默认值为"Table 1"
|
| 64 |
|
| 65 |
with gr.Row():
|
|
|
|
| 27 |
|
| 28 |
# 定义一个函数,根据用户选择的表格返回相应的表格
|
| 29 |
def display_table(table_choice):
|
| 30 |
+
if table_choice == "Option 1: Image Generation Test Ranking":
|
| 31 |
return dff1_1
|
| 32 |
+
elif table_choice == "Option 2: Image Revision Test Ranking":
|
| 33 |
return dff1_2
|
| 34 |
+
elif table_choice == "Option 3: Safety and Responsibility Ranking":
|
| 35 |
return dff1_3
|
| 36 |
+
elif table_choice == "Option 4: Rankings of Image Generation Task by Dimensio-Alignment with Instruction":
|
| 37 |
return dff2_1
|
| 38 |
+
elif table_choice == "Option 5: Rankings of Image Generation Task by Dimension-Image Integrity":
|
| 39 |
return dff2_2
|
| 40 |
+
elif table_choice == "Option 6: Rankings of Image Generation Task by Dimension-Image Aesthetics":
|
| 41 |
return dff2_3
|
| 42 |
+
elif table_choice == "Option 7: Rankings of Image Revision Task by Dimension-Alignment with Reference":
|
| 43 |
return dff3_1
|
| 44 |
+
elif table_choice == "Option 8: Rankings of Image Revision Task by Dimension-Image Integrity":
|
| 45 |
return dff3_2
|
| 46 |
+
elif table_choice == "Option 9: Rankings of Image Revision Task by Dimension-Image Aesthetics":
|
| 47 |
return dff3_3
|
| 48 |
|
| 49 |
with gr.Blocks() as demo:
|
|
|
|
| 59 |
|
| 60 |
with gr.Row():
|
| 61 |
dropdown = gr.Dropdown(choices=["Option 1: Image Generation Test Ranking", "Option 2: Image Revision Test Ranking", "Option 3: Safety and Responsibility Ranking","Option 4: Rankings of Image Generation Task by Dimensio-Alignment with Instruction","Option 5: Rankings of Image Generation Task by Dimension-Image Integrity","Option 6: Rankings of Image Generation Task by Dimension-Image Aesthetics","Option 7: Rankings of Image Revision Task by Dimension-Alignment with Reference","Option 8: Rankings of Image Revision Task by Dimension-Image Integrity","Option 9: Rankings of Image Revision Task by Dimension-Image Aesthetics"],
|
| 62 |
+
label="Select a Leaderboard",
|
| 63 |
value="Image Generation Test Ranking") # 设置默认值为"Table 1"
|
| 64 |
|
| 65 |
with gr.Row():
|