Spaces:
Running
Running
XufengDuan
commited on
Commit
•
07998f1
1
Parent(s):
f18b33a
update scripts
Browse files
app.py
CHANGED
@@ -175,13 +175,14 @@ def process_pending_evals():
|
|
175 |
def update_table(
|
176 |
hidden_df: pd.DataFrame,
|
177 |
columns: list,
|
178 |
-
type_query: list,
|
179 |
precision_query: str,
|
180 |
size_query: list,
|
181 |
show_deleted: bool,
|
182 |
query: str,
|
183 |
):
|
184 |
-
filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
|
|
185 |
filtered_df = filter_queries(query, filtered_df)
|
186 |
df = select_columns(filtered_df, columns)
|
187 |
return df
|
@@ -223,7 +224,8 @@ def filter_queries(query: str, filtered_df: pd.DataFrame) -> pd.DataFrame:
|
|
223 |
|
224 |
|
225 |
def filter_models(
|
226 |
-
df: pd.DataFrame, type_query: list, size_query: list, precision_query: list, show_deleted: bool
|
|
|
227 |
) -> pd.DataFrame:
|
228 |
# Show all models
|
229 |
# if show_deleted:
|
@@ -233,7 +235,7 @@ def filter_models(
|
|
233 |
|
234 |
filtered_df = df
|
235 |
|
236 |
-
type_emoji = [t[0] for t in type_query]
|
237 |
#filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
|
238 |
filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.precision.name].isin(precision_query + ["None"])]
|
239 |
|
|
|
175 |
def update_table(
|
176 |
hidden_df: pd.DataFrame,
|
177 |
columns: list,
|
178 |
+
#type_query: list,
|
179 |
precision_query: str,
|
180 |
size_query: list,
|
181 |
show_deleted: bool,
|
182 |
query: str,
|
183 |
):
|
184 |
+
# filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
185 |
+
filtered_df = filter_models(hidden_df, size_query, precision_query, show_deleted)
|
186 |
filtered_df = filter_queries(query, filtered_df)
|
187 |
df = select_columns(filtered_df, columns)
|
188 |
return df
|
|
|
224 |
|
225 |
|
226 |
def filter_models(
|
227 |
+
# df: pd.DataFrame, type_query: list, size_query: list, precision_query: list, show_deleted: bool
|
228 |
+
df: pd.DataFrame, size_query: list, precision_query: list, show_deleted: bool
|
229 |
) -> pd.DataFrame:
|
230 |
# Show all models
|
231 |
# if show_deleted:
|
|
|
235 |
|
236 |
filtered_df = df
|
237 |
|
238 |
+
# type_emoji = [t[0] for t in type_query]
|
239 |
#filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
|
240 |
filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.precision.name].isin(precision_query + ["None"])]
|
241 |
|