ppsingh commited on
Commit
99468c6
1 Parent(s): e226ffd

Update utils/uploadAndExample.py

Browse files
Files changed (1) hide show
  1. utils/uploadAndExample.py +0 -10
utils/uploadAndExample.py CHANGED
@@ -3,11 +3,6 @@ import tempfile
3
  import json
4
  import time
5
 
6
- #st.write("The warning is cleared in 3 seconds!")
7
- #alert = st.warning("Warning!") # Display the alert
8
- #time.sleep(3) # Wait for 3 seconds
9
- #alert.empty()
10
-
11
  def add_upload(choice):
12
  """
13
  Provdies the user with choice to either 'Upload Document' or 'Try Example'.
@@ -17,11 +12,6 @@ def add_upload(choice):
17
  """
18
 
19
  if choice == 'Upload Document':
20
-
21
- # if 'filename' in st.session_state:
22
- # Delete all the items in Session state
23
- # for key in st.session_state.keys():
24
- # del st.session_state[key]
25
 
26
  uploaded_file = st.sidebar.file_uploader('Upload the File',
27
  type=['pdf', 'docx', 'txt'])
 
3
  import json
4
  import time
5
 
 
 
 
 
 
6
  def add_upload(choice):
7
  """
8
  Provdies the user with choice to either 'Upload Document' or 'Try Example'.
 
12
  """
13
 
14
  if choice == 'Upload Document':
 
 
 
 
 
15
 
16
  uploaded_file = st.sidebar.file_uploader('Upload the File',
17
  type=['pdf', 'docx', 'txt'])