Sasidhar commited on
Commit
a9ae4d6
·
1 Parent(s): 065cd15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from annotated_text import annotated_text
3
+
4
+ """
5
+ # Annotated text example
6
+
7
+ Below is an example of how to use the annotated_text function:
8
+ """
9
+
10
+ annotated_text(
11
+ "This ",
12
+ ("is", "verb", "#8ef"),
13
+ " some ",
14
+ ("annotated", "adj", "#faa"),
15
+ ("text", "noun", "#afa"),
16
+ " for those of ",
17
+ ("you", "pronoun", "#fea"),
18
+ " who ",
19
+ ("like", "verb", "#8ef"),
20
+ " this sort of ",
21
+ ("thing", "noun", "#afa"),
22
+ )