Spaces:
Running
Running
Update app/utils.py
Browse files- app/utils.py +7 -1
app/utils.py
CHANGED
@@ -28,4 +28,10 @@ def get_refresh_function():
|
|
28 |
df = add_rank_and_format(data_task_category)
|
29 |
return df
|
30 |
|
31 |
-
return _refresh
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
df = add_rank_and_format(data_task_category)
|
29 |
return df
|
30 |
|
31 |
+
return _refresh
|
32 |
+
|
33 |
+
|
34 |
+
def filter_models(data, search_term):
|
35 |
+
if search_term:
|
36 |
+
data = data[data['Model'].str.contains(search_term, case=False, na=False)]
|
37 |
+
return data
|