Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Clean up
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ def search_table(df: pd.DataFrame, query: str) -> pd.DataFrame:
|
|
127 |
return df[df[AutoEvalColumn.dummy.name].str.contains(query, case=False)]
|
128 |
|
129 |
|
130 |
-
def filter_queries(query: str, filtered_df: pd.DataFrame):
|
131 |
"""Added by Abishek"""
|
132 |
final_df = []
|
133 |
if query != "":
|
@@ -141,7 +141,11 @@ def filter_queries(query: str, filtered_df: pd.DataFrame):
|
|
141 |
if len(final_df) > 0:
|
142 |
filtered_df = pd.concat(final_df)
|
143 |
filtered_df = filtered_df.drop_duplicates(
|
144 |
-
subset=[
|
|
|
|
|
|
|
|
|
145 |
)
|
146 |
|
147 |
return filtered_df
|
|
|
127 |
return df[df[AutoEvalColumn.dummy.name].str.contains(query, case=False)]
|
128 |
|
129 |
|
130 |
+
def filter_queries(query: str, filtered_df: pd.DataFrame) -> pd.DataFrame:
|
131 |
"""Added by Abishek"""
|
132 |
final_df = []
|
133 |
if query != "":
|
|
|
141 |
if len(final_df) > 0:
|
142 |
filtered_df = pd.concat(final_df)
|
143 |
filtered_df = filtered_df.drop_duplicates(
|
144 |
+
subset=[
|
145 |
+
AutoEvalColumn.model.name,
|
146 |
+
AutoEvalColumn.precision.name,
|
147 |
+
AutoEvalColumn.revision.name,
|
148 |
+
]
|
149 |
)
|
150 |
|
151 |
return filtered_df
|