Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ print(dataseteCQM)
|
|
12 |
# play with some dataset tools before the show:
|
13 |
start_with_ar = datasetLOINC.filter(lambda example: example["Description"].startswith("Mental health"))
|
14 |
len(start_with_ar)
|
15 |
-
print(start_with_ar["Description"])
|
16 |
|
17 |
#---
|
18 |
#Main Stage - Begin!
|
@@ -38,7 +38,8 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
38 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
39 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
40 |
[
|
41 |
-
(
|
|
|
42 |
("The", "art"),
|
43 |
("quick brown", "adj"),
|
44 |
("fox", "nn"),
|
@@ -52,7 +53,8 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
52 |
(".", "punc"),
|
53 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
54 |
[
|
55 |
-
(
|
|
|
56 |
("The testing testing testing", None),
|
57 |
("over", 0.6),
|
58 |
("the", 0.2),
|
|
|
12 |
# play with some dataset tools before the show:
|
13 |
start_with_ar = datasetLOINC.filter(lambda example: example["Description"].startswith("Mental health"))
|
14 |
len(start_with_ar)
|
15 |
+
#print(start_with_ar["Description"])
|
16 |
|
17 |
#---
|
18 |
#Main Stage - Begin!
|
|
|
38 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
39 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
40 |
[
|
41 |
+
(start_with_ar = datasetLOINC.filter(lambda example: example["Description"].startswith("Mental health"))
|
42 |
+
),
|
43 |
("The", "art"),
|
44 |
("quick brown", "adj"),
|
45 |
("fox", "nn"),
|
|
|
53 |
(".", "punc"),
|
54 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
55 |
[
|
56 |
+
(start_with_ar = datasetLOINC.filter(lambda example: example["Description"].startswith("Mental health"))
|
57 |
+
, 0.99),
|
58 |
("The testing testing testing", None),
|
59 |
("over", 0.6),
|
60 |
("the", 0.2),
|