Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -96,13 +96,10 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
96 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
97 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
98 |
[
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
(searchTerm, "vrb"),
|
103 |
-
(start_with_searchTermLOINC['train'][0], "nn"),
|
104 |
-
(searchTermSentence, "vrb"),
|
105 |
-
(start_with_searchTermSNOMED['train'][0], "nn"),
|
106 |
("The", "art"),
|
107 |
("quick brown", "adj"),
|
108 |
("fox", "nn"),
|
@@ -116,9 +113,9 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
116 |
(".", "punc"),
|
117 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
118 |
[
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
("The testing testing testing", None),
|
123 |
("over", 0.6),
|
124 |
("the", 0.2),
|
@@ -212,4 +209,4 @@ demo = gr.Interface(
|
|
212 |
)
|
213 |
|
214 |
if __name__ == "__main__":
|
215 |
-
demo.launch()
|
|
|
96 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
97 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
98 |
[
|
99 |
+
(top1matchLOINC, "nn"),
|
100 |
+
(top1matchSNOMED, "nn" ),
|
101 |
+
(top1matchCQM, "nn" ),
|
102 |
(searchTerm, "vrb"),
|
|
|
|
|
|
|
103 |
("The", "art"),
|
104 |
("quick brown", "adj"),
|
105 |
("fox", "nn"),
|
|
|
113 |
(".", "punc"),
|
114 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
115 |
[
|
116 |
+
(top1matchLOINC, 0.8 ),
|
117 |
+
(top1matchSNOMED, 0.8 ),
|
118 |
+
(top1matchCQM, 0.8 ),
|
119 |
("The testing testing testing", None),
|
120 |
("over", 0.6),
|
121 |
("the", 0.2),
|
|
|
209 |
)
|
210 |
|
211 |
if __name__ == "__main__":
|
212 |
+
demo.launch(debug=true)
|