Spaces:
Running
Running
BenchmarkBot
commited on
Commit
Β·
d2ef1d3
1
Parent(s):
6e1a84a
added filtering through sbmit button
Browse files
app.py
CHANGED
@@ -67,19 +67,20 @@ def change_tab(query_param):
|
|
67 |
|
68 |
|
69 |
def submit_query(single_df, multi_df, text, backends, datatypes, threshold):
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
filtered_multi = multi_df[
|
79 |
-
|
80 |
-
|
81 |
-
datatypes)
|
82 |
-
|
|
|
83 |
|
84 |
return filtered_single, filtered_multi
|
85 |
|
|
|
67 |
|
68 |
|
69 |
def submit_query(single_df, multi_df, text, backends, datatypes, threshold):
|
70 |
+
|
71 |
+
filtered_single = single_df[
|
72 |
+
single_df["Model π€"].str.contains(text) &
|
73 |
+
single_df["Backend π"].isin(backends) &
|
74 |
+
single_df["Datatype π₯"].isin(datatypes) &
|
75 |
+
single_df["Average H4 Score β¬οΈ"] >= threshold
|
76 |
+
]
|
77 |
+
|
78 |
+
filtered_multi = multi_df[
|
79 |
+
multi_df["Model π€"].str.contains(text) &
|
80 |
+
multi_df["Backend π"].isin(backends) &
|
81 |
+
multi_df["Datatype π₯"].isin(datatypes) &
|
82 |
+
multi_df["Average H4 Score β¬οΈ"] >= threshold
|
83 |
+
]
|
84 |
|
85 |
return filtered_single, filtered_multi
|
86 |
|