devingulliver commited on
Commit
6e27c0b
1 Parent(s): 8b30137

Make search case-insensitive

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ archlinks = {
19
  def filter_table(cols, name, type, arch, size):
20
  tmp = data
21
  # filter
22
- tmp = tmp[tmp["Name"].str.contains(name)]
23
  tmp = tmp[tmp["Type"].isin(type)]
24
  tmp = tmp[tmp["Architecture"].isin(arch)]
25
  tmp = tmp[tmp["Model Size"].isin(size)]
 
19
  def filter_table(cols, name, type, arch, size):
20
  tmp = data
21
  # filter
22
+ tmp = tmp[tmp["Name"].str.lower().contains(name.lower())]
23
  tmp = tmp[tmp["Type"].isin(type)]
24
  tmp = tmp[tmp["Architecture"].isin(arch)]
25
  tmp = tmp[tmp["Model Size"].isin(size)]