Sasidhar commited on
Commit
89dee4c
·
1 Parent(s): 70bb0b4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -5,7 +5,7 @@ from annotated_text import annotated_text
5
  # Annotated text example
6
 
7
  Below is an example of how to use the annotated_text function:
8
- """
9
 
10
  with st.echo():
11
  annotated_text(
@@ -21,4 +21,11 @@ with st.echo():
21
  " this sort of ",
22
  ("thing", "noun"),
23
  "."
24
- )
 
 
 
 
 
 
 
 
5
  # Annotated text example
6
 
7
  Below is an example of how to use the annotated_text function:
8
+
9
 
10
  with st.echo():
11
  annotated_text(
 
21
  " this sort of ",
22
  ("thing", "noun"),
23
  "."
24
+ )
25
+ """
26
+ uploaded_file = st.file_uploader("Choose a file")
27
+
28
+ if uploaded_file is not None:
29
+ # To convert to a string based IO:
30
+ stringio = StringIO(uploaded_file.getvalue().decode("utf-8"))
31
+ st.write(stringio)