Spaces:
Sleeping
Sleeping
XufengDuan
commited on
Commit
·
db0619e
1
Parent(s):
f04439c
update scripts
Browse files
app.py
CHANGED
@@ -142,13 +142,13 @@ def update_table(
|
|
142 |
hidden_df: pd.DataFrame,
|
143 |
columns: list,
|
144 |
#type_query: list,
|
145 |
-
precision_query: str,
|
146 |
size_query: list,
|
147 |
-
show_deleted: bool,
|
148 |
query: str,
|
149 |
):
|
150 |
# filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
151 |
-
filtered_df = filter_models(hidden_df, size_query
|
152 |
filtered_df = filter_queries(query, filtered_df)
|
153 |
df = select_columns(filtered_df, columns)
|
154 |
return df
|
@@ -191,7 +191,7 @@ def filter_queries(query: str, filtered_df: pd.DataFrame) -> pd.DataFrame:
|
|
191 |
|
192 |
def filter_models(
|
193 |
# df: pd.DataFrame, type_query: list, size_query: list, precision_query: list, show_deleted: bool
|
194 |
-
df: pd.DataFrame, size_query: list
|
195 |
) -> pd.DataFrame:
|
196 |
# Show all models
|
197 |
# if show_deleted:
|
@@ -203,7 +203,7 @@ def filter_models(
|
|
203 |
|
204 |
# type_emoji = [t[0] for t in type_query]
|
205 |
#filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
|
206 |
-
filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.precision.name].isin(precision_query + ["None"])]
|
207 |
|
208 |
numeric_interval = pd.IntervalIndex(sorted([utils.NUMERIC_INTERVALS[s] for s in size_query]))
|
209 |
params_column = pd.to_numeric(df[utils.AutoEvalColumn.params.name], errors="coerce")
|
|
|
142 |
hidden_df: pd.DataFrame,
|
143 |
columns: list,
|
144 |
#type_query: list,
|
145 |
+
#precision_query: str,
|
146 |
size_query: list,
|
147 |
+
#show_deleted: bool,
|
148 |
query: str,
|
149 |
):
|
150 |
# filtered_df = filter_models(hidden_df, type_query, size_query, precision_query, show_deleted)
|
151 |
+
filtered_df = filter_models(hidden_df, size_query)
|
152 |
filtered_df = filter_queries(query, filtered_df)
|
153 |
df = select_columns(filtered_df, columns)
|
154 |
return df
|
|
|
191 |
|
192 |
def filter_models(
|
193 |
# df: pd.DataFrame, type_query: list, size_query: list, precision_query: list, show_deleted: bool
|
194 |
+
df: pd.DataFrame, size_query: list # precision_query: list, show_deleted: bool
|
195 |
) -> pd.DataFrame:
|
196 |
# Show all models
|
197 |
# if show_deleted:
|
|
|
203 |
|
204 |
# type_emoji = [t[0] for t in type_query]
|
205 |
#filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.model_type_symbol.name].isin(type_emoji)]
|
206 |
+
#filtered_df = filtered_df.loc[df[utils.AutoEvalColumn.precision.name].isin(precision_query + ["None"])]
|
207 |
|
208 |
numeric_interval = pd.IntervalIndex(sorted([utils.NUMERIC_INTERVALS[s] for s in size_query]))
|
209 |
params_column = pd.to_numeric(df[utils.AutoEvalColumn.params.name], errors="coerce")
|