Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -40,10 +40,10 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
40 |
#my_dataset_dictionary['train'][0]
|
41 |
start_with_searchTermLOINC = datasetLOINC.filter(lambda example: example["Description"].startswith('Allergy')) #Allergy
|
42 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital')) #Hospital
|
43 |
-
start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Admission')) #Admission
|
44 |
print(start_with_searchTermLOINC['train'][0] )
|
45 |
print(start_with_searchTermSNOMED['train'][0] )
|
46 |
-
print(start_with_searchTermCQM['train'][0] )
|
47 |
return (
|
48 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
49 |
#(start_with_searchTermLOINC if single_checkbox else start_with_searchTermSNOMED) + ", selected:" + ", ".join(checkboxes), # Text
|
@@ -55,6 +55,10 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
55 |
#(searchTerm, start_with_searchTermLOINC[0]),
|
56 |
#(searchTerm, start_with_searchTermSNOMED[0] ),
|
57 |
#(searchTerm, start_with_searchTermCQM[0] ),
|
|
|
|
|
|
|
|
|
58 |
("The", "art"),
|
59 |
("quick brown", "adj"),
|
60 |
("fox", "nn"),
|
|
|
40 |
#my_dataset_dictionary['train'][0]
|
41 |
start_with_searchTermLOINC = datasetLOINC.filter(lambda example: example["Description"].startswith('Allergy')) #Allergy
|
42 |
start_with_searchTermSNOMED = datasetSNOMED.filter(lambda example: example["Description"].startswith('Hospital')) #Hospital
|
43 |
+
#start_with_searchTermCQM = dataseteCQM.filter(lambda example: example["Description"].startswith('Admission')) #Admission
|
44 |
print(start_with_searchTermLOINC['train'][0] )
|
45 |
print(start_with_searchTermSNOMED['train'][0] )
|
46 |
+
#print(start_with_searchTermCQM['train'][0] )
|
47 |
return (
|
48 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
49 |
#(start_with_searchTermLOINC if single_checkbox else start_with_searchTermSNOMED) + ", selected:" + ", ".join(checkboxes), # Text
|
|
|
55 |
#(searchTerm, start_with_searchTermLOINC[0]),
|
56 |
#(searchTerm, start_with_searchTermSNOMED[0] ),
|
57 |
#(searchTerm, start_with_searchTermCQM[0] ),
|
58 |
+
(searchTerm, "vrb"),
|
59 |
+
(start_with_searchTermLOINC['train'][0], "nn"),
|
60 |
+
(searchTermSentence, "vrb"),
|
61 |
+
(start_with_searchTermSNOMED['train'][0], "nn"),
|
62 |
("The", "art"),
|
63 |
("quick brown", "adj"),
|
64 |
("fox", "nn"),
|