Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,16 +7,18 @@ from annotated_text import annotated_text
|
|
7 |
Below is an example of how to use the annotated_text function:
|
8 |
"""
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
)
|
|
|
|
|
|
7 |
Below is an example of how to use the annotated_text function:
|
8 |
"""
|
9 |
|
10 |
+
with st.echo():
|
11 |
+
annotated_text(
|
12 |
+
"This ",
|
13 |
+
("is", "verb"),
|
14 |
+
" some ",
|
15 |
+
("annotated", "adj"),
|
16 |
+
("text", "noun"),
|
17 |
+
" for those of ",
|
18 |
+
("you", "pronoun"),
|
19 |
+
" who ",
|
20 |
+
("like", "verb"),
|
21 |
+
" this sort of ",
|
22 |
+
("thing", "noun"),
|
23 |
+
"."
|
24 |
+
)
|