awacke1 commited on
Commit
0eb3f60
·
1 Parent(s): 978439f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,8 +30,8 @@ def lowercase_title(example):
30
  return {"title": example[title].lower()}
31
 
32
  # demonstrate map function of dataset
33
- JSONOBJ_MAP=datasetLOINC.map(lowercase_title)
34
-
35
 
36
  #def fn( text1, text2, num, slider1, slider2, single_checkbox, checkboxes, radio, dropdown, im1, im2, im3, im4,
37
  # video, audio1, audio2, file, df1, df2,):
 
30
  return {"title": example[title].lower()}
31
 
32
  # demonstrate map function of dataset
33
+ #JSONOBJ_MAP=datasetLOINC.map(lowercase_title)
34
+ JSONOBJ_MAP=datasetLOINC.filter(lambda example: example["Description"].startswith("Mental health"))
35
 
36
  #def fn( text1, text2, num, slider1, slider2, single_checkbox, checkboxes, radio, dropdown, im1, im2, im3, im4,
37
  # video, audio1, audio2, file, df1, df2,):