Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,12 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
40 |
start_with_searchTermLOINC = datasetLOINC.filter(lambda example: example["Description"].startswith('Allergy'))[0] #Allergy
|
41 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital'))[0] #Hospital
|
42 |
start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Bathing'))[0] #Bathing
|
43 |
-
|
|
|
|
|
44 |
return (
|
45 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
46 |
-
(start_with_searchTermLOINC if single_checkbox else start_with_searchTermSNOMED) + ", selected:" + ", ".join(checkboxes), # Text
|
47 |
# {"positive": num / (num + slider1 + slider2),"negative": slider1 / (num + slider1 + slider2),"neutral": slider2 / (num + slider1 + slider2),}, # Label
|
48 |
# (audio1[0], np.flipud(audio1[1])) if audio1 is not None else os.path.join(os.path.dirname(__file__), "files/cantina.wav"), # Audio
|
49 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
|
|
40 |
start_with_searchTermLOINC = datasetLOINC.filter(lambda example: example["Description"].startswith('Allergy'))[0] #Allergy
|
41 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital'))[0] #Hospital
|
42 |
start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Bathing'))[0] #Bathing
|
43 |
+
print(start_with_searchTermLOINC )
|
44 |
+
print(start_with_searchTermSNOMED )
|
45 |
+
print(start_with_searchTermCQM )
|
46 |
return (
|
47 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
48 |
+
#(start_with_searchTermLOINC if single_checkbox else start_with_searchTermSNOMED) + ", selected:" + ", ".join(checkboxes), # Text
|
49 |
# {"positive": num / (num + slider1 + slider2),"negative": slider1 / (num + slider1 + slider2),"neutral": slider2 / (num + slider1 + slider2),}, # Label
|
50 |
# (audio1[0], np.flipud(audio1[1])) if audio1 is not None else os.path.join(os.path.dirname(__file__), "files/cantina.wav"), # Audio
|
51 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|