Upload 2 files
Browse files- app.py +15 -20
- constants.py +11 -0
app.py
CHANGED
@@ -608,9 +608,8 @@ def on_filter_model_size_method_change_long(selected_columns, vbench_team_sample
|
|
608 |
)
|
609 |
return filter_component#.value
|
610 |
|
611 |
-
block = gr.Blocks()
|
612 |
-
|
613 |
|
|
|
614 |
with block:
|
615 |
gr.Markdown(
|
616 |
LEADERBORAD_INTRODUCTION
|
@@ -618,24 +617,20 @@ with block:
|
|
618 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
619 |
# Table 0
|
620 |
with gr.TabItem("π
WorldScore Benchmark", elem_id="worldscore-tab-table", id=1):
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
value=DEFAULT_INFO,
|
636 |
-
label="Evaluation Dimension",
|
637 |
-
interactive=True,
|
638 |
-
)
|
639 |
|
640 |
# data_component = gr.components.Dataframe(
|
641 |
# value=get_baseline_df,
|
|
|
608 |
)
|
609 |
return filter_component#.value
|
610 |
|
|
|
|
|
611 |
|
612 |
+
block = gr.Blocks()
|
613 |
with block:
|
614 |
gr.Markdown(
|
615 |
LEADERBORAD_INTRODUCTION
|
|
|
617 |
with gr.Tabs(elem_classes="tab-buttons") as tabs:
|
618 |
# Table 0
|
619 |
with gr.TabItem("π
WorldScore Benchmark", elem_id="worldscore-tab-table", id=1):
|
620 |
+
with gr.Column():
|
621 |
+
model_type_filter = gr.CheckboxGroup(
|
622 |
+
choices=MODEL_TYPE,
|
623 |
+
value=DEFAULT_MODEL_TYPE,
|
624 |
+
label="Model Type",
|
625 |
+
interactive=True
|
626 |
+
)
|
627 |
+
# selection for column part:
|
628 |
+
checkbox_group = gr.CheckboxGroup(
|
629 |
+
choices=TASK_INFO,
|
630 |
+
value=DEFAULT_INFO,
|
631 |
+
label="Evaluation Dimension",
|
632 |
+
interactive=True,
|
633 |
+
)
|
|
|
|
|
|
|
|
|
634 |
|
635 |
# data_component = gr.components.Dataframe(
|
636 |
# value=get_baseline_df,
|
constants.py
CHANGED
@@ -1,5 +1,16 @@
|
|
1 |
import os
|
2 |
# this is .py for store constants
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
MODEL_INFO = [
|
4 |
"Model Name (clickable)",
|
5 |
"Sampled by",
|
|
|
1 |
import os
|
2 |
# this is .py for store constants
|
3 |
+
MODEL_TYPE = [
|
4 |
+
"video generation",
|
5 |
+
"3D scene generation",
|
6 |
+
"4D scene generation"
|
7 |
+
]
|
8 |
+
DEFAULT_MODEL_TYPE = [
|
9 |
+
"video generation",
|
10 |
+
"3D scene generation",
|
11 |
+
"4D scene generation"
|
12 |
+
]
|
13 |
+
|
14 |
MODEL_INFO = [
|
15 |
"Model Name (clickable)",
|
16 |
"Sampled by",
|