Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -37,12 +37,13 @@ JSONOBJ = """{"items":{"item":[{"id": "0001","type": null,"is_good": false,"ppu"
|
|
37 |
def fn( text1, text2, single_checkbox, checkboxes, radio, im4, file, df1, df2,):
|
38 |
searchTerm = text1
|
39 |
searchTermSentence = text2
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
print(
|
45 |
-
print(
|
|
|
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
|
|
|
37 |
def fn( text1, text2, single_checkbox, checkboxes, radio, im4, file, df1, df2,):
|
38 |
searchTerm = text1
|
39 |
searchTermSentence = text2
|
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('Bathing')) #Bathing
|
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
|