Update app.py
Browse files
app.py
CHANGED
@@ -129,7 +129,7 @@ def filter_direct_complete(df, leaderboard_table, query):
|
|
129 |
|
130 |
|
131 |
def search_table(df, leaderboard_table, query):
|
132 |
-
filtered_df = df[(df["model"].str.contains(query, case=False))]
|
133 |
return filtered_df[leaderboard_table.columns]
|
134 |
|
135 |
|
|
|
129 |
|
130 |
|
131 |
def search_table(df, leaderboard_table, query):
|
132 |
+
filtered_df = df[(df["model"].str.contains("|".join(q.strip() for q in query.split("|")), case=False))]
|
133 |
return filtered_df[leaderboard_table.columns]
|
134 |
|
135 |
|