ppsingh commited on
Commit
48b3612
1 Parent(s): 0e3ebc4

Update utils/uploadAndExample.py

Browse files
Files changed (1) hide show
  1. utils/uploadAndExample.py +3 -3
utils/uploadAndExample.py CHANGED
@@ -12,10 +12,10 @@ def add_upload(choice):
12
 
13
  if choice == 'Upload Document':
14
 
15
- if 'filename' in st.session_state:
16
  # Delete all the items in Session state
17
- for key in st.session_state.keys():
18
- del st.session_state[key]
19
 
20
  uploaded_file = st.sidebar.file_uploader('Upload the File',
21
  type=['pdf', 'docx', 'txt'])
 
12
 
13
  if choice == 'Upload Document':
14
 
15
+ # if 'filename' in st.session_state:
16
  # Delete all the items in Session state
17
+ # for key in st.session_state.keys():
18
+ # del st.session_state[key]
19
 
20
  uploaded_file = st.sidebar.file_uploader('Upload the File',
21
  type=['pdf', 'docx', 'txt'])