Spaces:
Runtime error
Runtime error
DamonDemon
commited on
Commit
·
d9dfc16
1
Parent(s):
4552efd
final refine
Browse files
app.py
CHANGED
@@ -33,8 +33,8 @@ def restart_space():
|
|
33 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
34 |
|
35 |
# Searching and filtering
|
36 |
-
|
37 |
-
methods = list(set(
|
38 |
metrics = ["Style-UA", "Style-IRA", "Style-CRA", "Object-UA", "Object-IRA", "Object-CRA", "FID", "Time (s)", "Storage (GB)", "Memory (GB)"]
|
39 |
|
40 |
def update_table(
|
@@ -53,9 +53,8 @@ def update_table(
|
|
53 |
|
54 |
|
55 |
def select_columns(df: pd.DataFrame, columns_1: list, columns_2: list, columns_3: list) -> pd.DataFrame:
|
56 |
-
always_here_cols = [
|
57 |
-
|
58 |
-
]
|
59 |
# We use COLS to maintain sorting
|
60 |
all_columns = metrics
|
61 |
|
@@ -133,7 +132,7 @@ with demo:
|
|
133 |
|
134 |
|
135 |
leaderboard_table = gr.components.Dataframe(
|
136 |
-
value=
|
137 |
elem_id="leaderboard-table",
|
138 |
interactive=False,
|
139 |
visible=True,
|
@@ -141,7 +140,7 @@ with demo:
|
|
141 |
)
|
142 |
|
143 |
game_bench_df_for_search = gr.components.Dataframe(
|
144 |
-
value=
|
145 |
elem_id="leaderboard-table",
|
146 |
interactive=False,
|
147 |
visible=False,
|
|
|
33 |
API.restart_space(repo_id=REPO_ID, token=H4_TOKEN)
|
34 |
|
35 |
# Searching and filtering
|
36 |
+
raw_data = dummydf()
|
37 |
+
methods = list(set(raw_data['Method']))
|
38 |
metrics = ["Style-UA", "Style-IRA", "Style-CRA", "Object-UA", "Object-IRA", "Object-CRA", "FID", "Time (s)", "Storage (GB)", "Memory (GB)"]
|
39 |
|
40 |
def update_table(
|
|
|
53 |
|
54 |
|
55 |
def select_columns(df: pd.DataFrame, columns_1: list, columns_2: list, columns_3: list) -> pd.DataFrame:
|
56 |
+
always_here_cols = ["Method"]
|
57 |
+
|
|
|
58 |
# We use COLS to maintain sorting
|
59 |
all_columns = metrics
|
60 |
|
|
|
132 |
|
133 |
|
134 |
leaderboard_table = gr.components.Dataframe(
|
135 |
+
value= raw_data,
|
136 |
elem_id="leaderboard-table",
|
137 |
interactive=False,
|
138 |
visible=True,
|
|
|
140 |
)
|
141 |
|
142 |
game_bench_df_for_search = gr.components.Dataframe(
|
143 |
+
value= raw_data,
|
144 |
elem_id="leaderboard-table",
|
145 |
interactive=False,
|
146 |
visible=False,
|