Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,13 +37,13 @@ def display_table(table_choice):
|
|
| 37 |
return dff2_3
|
| 38 |
|
| 39 |
def display_table2(table_choice):
|
| 40 |
-
if table_choice == "
|
| 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:
|
|
@@ -71,11 +71,11 @@ with gr.Blocks() as demo:
|
|
| 71 |
|
| 72 |
with gr.Tab("Image Revision"):
|
| 73 |
with gr.Column():
|
| 74 |
-
dropdown2 = gr.Dropdown(choices=["
|
| 75 |
-
"--
|
| 76 |
-
"--
|
| 77 |
label="Select a Leaderboard",
|
| 78 |
-
value="
|
| 79 |
|
| 80 |
output2 = gr.DataFrame(value=dff1_2, max_height =900)
|
| 81 |
|
|
|
|
| 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:
|
|
|
|
| 71 |
|
| 72 |
with gr.Tab("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 |
|
| 80 |
output2 = gr.DataFrame(value=dff1_2, max_height =900)
|
| 81 |
|