Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -84,21 +84,21 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
84 |
#returnMsg=profile_dataset()
|
85 |
#print(returnMsg)
|
86 |
|
87 |
-
try:
|
88 |
#top1matchLOINC = json.loads(start_with_searchTermLOINC['train'])
|
89 |
#top1matchSNOMED = json.loads(start_with_searchTermSNOMED['train'])
|
90 |
#top1matchCQM = json.loads(start_with_searchTermCQM['train'])
|
91 |
-
top1matchLOINC = json.loads(start_with_searchTermLOINC)
|
92 |
-
top1matchSNOMED = json.loads(start_with_searchTermSNOMED)
|
93 |
-
top1matchCQM = json.loads(start_with_searchTermCQM)
|
94 |
-
except:
|
95 |
-
print('Hello')
|
96 |
#print(start_with_searchTermLOINC[0])
|
97 |
#print(start_with_searchTermSNOMED[0] )
|
98 |
#print(start_with_searchTermCQM[0] )
|
99 |
|
100 |
#print(returnMsg)
|
101 |
-
|
102 |
|
103 |
return (
|
104 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
@@ -108,9 +108,9 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
108 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
109 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
110 |
[
|
111 |
-
(
|
112 |
-
(
|
113 |
-
(
|
114 |
(searchTerm, "vrb"),
|
115 |
("The", "art"),
|
116 |
("quick brown", "adj"),
|
@@ -125,9 +125,9 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
125 |
(".", "punc"),
|
126 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
127 |
[
|
128 |
-
(
|
129 |
-
(
|
130 |
-
(
|
131 |
("The testing testing testing", None),
|
132 |
("over", 0.6),
|
133 |
("the", 0.2),
|
|
|
84 |
#returnMsg=profile_dataset()
|
85 |
#print(returnMsg)
|
86 |
|
87 |
+
# try:
|
88 |
#top1matchLOINC = json.loads(start_with_searchTermLOINC['train'])
|
89 |
#top1matchSNOMED = json.loads(start_with_searchTermSNOMED['train'])
|
90 |
#top1matchCQM = json.loads(start_with_searchTermCQM['train'])
|
91 |
+
# top1matchLOINC = json.loads(start_with_searchTermLOINC)
|
92 |
+
# top1matchSNOMED = json.loads(start_with_searchTermSNOMED)
|
93 |
+
# top1matchCQM = json.loads(start_with_searchTermCQM)
|
94 |
+
# except:
|
95 |
+
# print('Hello')
|
96 |
#print(start_with_searchTermLOINC[0])
|
97 |
#print(start_with_searchTermSNOMED[0] )
|
98 |
#print(start_with_searchTermCQM[0] )
|
99 |
|
100 |
#print(returnMsg)
|
101 |
+
# print("Datasets Processed")
|
102 |
|
103 |
return (
|
104 |
#(text1 if single_checkbox else text2) + ", selected:" + ", ".join(checkboxes), # Text
|
|
|
108 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
109 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
110 |
[
|
111 |
+
(JSONOBJ, "nn"),
|
112 |
+
(JSONOBJ, "nn" ),
|
113 |
+
(JSONOBJ, "nn" ),
|
114 |
(searchTerm, "vrb"),
|
115 |
("The", "art"),
|
116 |
("quick brown", "adj"),
|
|
|
125 |
(".", "punc"),
|
126 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
127 |
[
|
128 |
+
(JSONOBJ, 0.8 ),
|
129 |
+
(JSONOBJ, 0.8 ),
|
130 |
+
(JSONOBJ, 0.8 ),
|
131 |
("The testing testing testing", None),
|
132 |
("over", 0.6),
|
133 |
("the", 0.2),
|