OSainz commited on
Commit
473e687
β€’
1 Parent(s): c4acbf6

Add ignorecase to search options

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -22,11 +22,11 @@ def filter_dataframe(dataframe, eval_dataset, cont_source, checkboxes):
22
  """
23
  if isinstance(eval_dataset, str):
24
  dataframe = dataframe[
25
- dataframe["Evaluation Dataset"].str.contains(eval_dataset)
26
  ]
27
  if isinstance(cont_source, str):
28
  dataframe = dataframe[
29
- dataframe["Contaminated Source"].str.contains(cont_source)
30
  ]
31
  if isinstance(checkboxes, list) and "Exclude model-based evidences" in checkboxes:
32
  dataframe = dataframe[dataframe["Approach"] != "model-based"]
 
22
  """
23
  if isinstance(eval_dataset, str):
24
  dataframe = dataframe[
25
+ dataframe["Evaluation Dataset"].str.contains(f"(?i){eval_dataset}")
26
  ]
27
  if isinstance(cont_source, str):
28
  dataframe = dataframe[
29
+ dataframe["Contaminated Source"].str.contains(f"(?i){cont_source}")
30
  ]
31
  if isinstance(checkboxes, list) and "Exclude model-based evidences" in checkboxes:
32
  dataframe = dataframe[dataframe["Approach"] != "model-based"]