Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,7 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
29 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
30 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
31 |
[
|
|
|
32 |
("The", "art"),
|
33 |
("quick brown", "adj"),
|
34 |
("fox", "nn"),
|
@@ -42,6 +43,7 @@ def fn( text1, text2, single_checkbox, checkboxes, radio, im4,
|
|
42 |
(".", "punc"),
|
43 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
44 |
[
|
|
|
45 |
("The testing testing testing", None),
|
46 |
("over", 0.6),
|
47 |
("the", 0.2),
|
@@ -124,8 +126,8 @@ demo = gr.Interface(
|
|
124 |
theme="default",
|
125 |
title="Gradio AI UI UX",
|
126 |
cache_examples=False,
|
127 |
-
description="
|
128 |
-
article="Learn more
|
129 |
)
|
130 |
|
131 |
if __name__ == "__main__":
|
|
|
29 |
# np.flipud(im1) if im1 is not None else os.path.join(os.path.dirname(__file__), "files/cheetah1.jpg"), # Image
|
30 |
# video if video is not None else os.path.join(os.path.dirname(__file__), "files/world.mp4"), # Video
|
31 |
[
|
32 |
+
(text2),
|
33 |
("The", "art"),
|
34 |
("quick brown", "adj"),
|
35 |
("fox", "nn"),
|
|
|
43 |
(".", "punc"),
|
44 |
] + [(f"test {x}", f"test {x}") for x in range(10)], # HighlightedText
|
45 |
[
|
46 |
+
(text2, 0.99),
|
47 |
("The testing testing testing", None),
|
48 |
("over", 0.6),
|
49 |
("the", 0.2),
|
|
|
126 |
theme="default",
|
127 |
title="Gradio AI UI UX",
|
128 |
cache_examples=False,
|
129 |
+
description="Clinical Terminology Auto Mapper AI",
|
130 |
+
article="Learn more at [Yggdrasil](https://github.com/AaronCWacker/Yggdrasil)",
|
131 |
)
|
132 |
|
133 |
if __name__ == "__main__":
|