Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -110,11 +110,8 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
110 |
# (audio1[0], np.flipud(audio1[1])) if audio1 is not None else os.path.join(os.path.dirname(__file__), "files/cantina.wav"), # Audio
|
111 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
112 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
|
|
113 |
[
|
114 |
-
#(JSONOBJ, "nn"),
|
115 |
-
#(JSONOBJ, "nn" ),
|
116 |
-
#(JSONOBJ, "nn" ),
|
117 |
-
#(searchTerm, "vrb"),
|
118 |
("The", "art"),
|
119 |
("quick brown", "adj"),
|
120 |
("fox", "nn"),
|
@@ -128,9 +125,6 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
128 |
(".", "punc"),
|
129 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
130 |
[
|
131 |
-
#(JSONOBJ, 0.8 ),
|
132 |
-
#(JSONOBJ, 0.8 ),
|
133 |
-
#(JSONOBJ, 0.8 ),
|
134 |
("The testing testing testing", None),
|
135 |
("over", 0.6),
|
136 |
("the", 0.2),
|
@@ -139,7 +133,7 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
139 |
("dogs", 0.4),
|
140 |
(".", 0),
|
141 |
] + [(f"test", x / 10) for x in range(-10, 10)], # HighlightedText
|
142 |
-
|
143 |
|
144 |
json.loads(JSONOBJ), # JSON
|
145 |
#json.loads(JSONOBJ_MAP), # JSONOBJ_MAP
|
|
|
110 |
# (audio1[0], np.flipud(audio1[1])) if audio1 is not None else os.path.join(os.path.dirname(__file__), "files/cantina.wav"), # Audio
|
111 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
112 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
113 |
+
|
114 |
[
|
|
|
|
|
|
|
|
|
115 |
("The", "art"),
|
116 |
("quick brown", "adj"),
|
117 |
("fox", "nn"),
|
|
|
125 |
(".", "punc"),
|
126 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
127 |
[
|
|
|
|
|
|
|
128 |
("The testing testing testing", None),
|
129 |
("over", 0.6),
|
130 |
("the", 0.2),
|
|
|
133 |
("dogs", 0.4),
|
134 |
(".", 0),
|
135 |
] + [(f"test", x / 10) for x in range(-10, 10)], # HighlightedText
|
136 |
+
|
137 |
|
138 |
json.loads(JSONOBJ), # JSON
|
139 |
#json.loads(JSONOBJ_MAP), # JSONOBJ_MAP
|