sequence of upload working
Browse files
app.py
CHANGED
@@ -130,6 +130,12 @@ st.markdown("sample queries for above file: <br/> what does nontechnical manager
|
|
130 |
if uploaded_json_file is not None:
|
131 |
if is_new_file_upload(uploaded_json_file):
|
132 |
print("is new file uploaded")
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
save_path = './uploaded_files'
|
134 |
if not os.path.exists(save_path):
|
135 |
os.makedirs(save_path)
|
|
|
130 |
if uploaded_json_file is not None:
|
131 |
if is_new_file_upload(uploaded_json_file):
|
132 |
print("is new file uploaded")
|
133 |
+
if 'paraphrased_paragrpahs' in st.session_state:
|
134 |
+
del st.session_state['paraphrased_paragrpahs']
|
135 |
+
if 'prev_query' in st.session_state:
|
136 |
+
del st.session_state['prev_query']
|
137 |
+
if 'paragraph_sentence_encodings' in st.session_state:
|
138 |
+
del st.session_state['paragraph_sentence_encodings']
|
139 |
save_path = './uploaded_files'
|
140 |
if not os.path.exists(save_path):
|
141 |
os.makedirs(save_path)
|