rbgo commited on
Commit
79e1bd1
1 Parent(s): a9d3c38

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -71,11 +71,11 @@ df = load_and_process_csv()
71
  def get_leaderboard_df():
72
  return df
73
 
74
- def filter_and_search(search_term, library_filter):
75
  filtered_df = df.copy()
76
 
77
- if search_term:
78
- filtered_df = filtered_df[filtered_df['Model_Name'].str.contains(search_term, case=False, na=False)]
79
 
80
  if library_filter != "All":
81
  filtered_df = filtered_df[filtered_df['Library'] == library_filter]
 
71
  def get_leaderboard_df():
72
  return df
73
 
74
+ def filter_and_search(model_filter, library_filter):
75
  filtered_df = df.copy()
76
 
77
+ if model_filter != "All":
78
+ filtered_df = filtered_df[filtered_df['Model_Name'] == model_filter]
79
 
80
  if library_filter != "All":
81
  filtered_df = filtered_df[filtered_df['Library'] == library_filter]