Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
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 |
-
|
45 |
-
|
46 |
#print(start_with_searchTermCQM['train'][0] )
|
47 |
return (
|
48 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
@@ -85,8 +85,9 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
85 |
] + [(f"test", x / 10) for x in range(-10, 10)], # HighlightedText
|
86 |
|
87 |
|
88 |
-
json.loads(JSONOBJ), # JSON
|
89 |
#json.loads(JSONOBJ_MAP), # JSONOBJ_MAP
|
|
|
90 |
|
91 |
"<button style='background-color: red'>Click Me: " + radio + "</button>", # HTML
|
92 |
os.path.join(os.path.dirname(__file__), "files/titanic.csv"),
|
|
|
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 |
+
top1matchLOINC = start_with_searchTermLOINC['train'][0]
|
45 |
+
top1matchSNOMED = 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
|
|
|
85 |
] + [(f"test", x / 10) for x in range(-10, 10)], # HighlightedText
|
86 |
|
87 |
|
88 |
+
#json.loads(JSONOBJ), # JSON
|
89 |
#json.loads(JSONOBJ_MAP), # JSONOBJ_MAP
|
90 |
+
json.loads(top1matchLOINC)
|
91 |
|
92 |
"<button style='background-color: red'>Click Me: " + radio + "</button>", # HTML
|
93 |
os.path.join(os.path.dirname(__file__), "files/titanic.csv"),
|