Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -167,11 +167,13 @@ if st.button('Submit'):
|
|
167 |
# doc1 = st.text_area('Document 1', value="1. What up bruh??")
|
168 |
for i in range(len(section_names)):
|
169 |
ui_doc_list.append(st.text_area(retrieve_prompt_template.format(inp_keys_list[i], ref_doc_indices[i], section_names[i], document_name), value=inp_doc_list[i]))
|
170 |
-
|
171 |
|
172 |
|
173 |
if st.session_state.submit_clicked:
|
174 |
if st.button('Retrieve'):
|
|
|
|
|
175 |
if 'organize_clicked' not in st.session_state:
|
176 |
st.session_state.organize_clicked = False
|
177 |
st.session_state.retrieve_clicked = True
|
|
|
167 |
# doc1 = st.text_area('Document 1', value="1. What up bruh??")
|
168 |
for i in range(len(section_names)):
|
169 |
ui_doc_list.append(st.text_area(retrieve_prompt_template.format(inp_keys_list[i], ref_doc_indices[i], section_names[i], document_name), value=inp_doc_list[i]))
|
170 |
+
# write_to_file('ui_doc.json', ui_doc_list)
|
171 |
|
172 |
|
173 |
if st.session_state.submit_clicked:
|
174 |
if st.button('Retrieve'):
|
175 |
+
# ui_doc_list=read_from_file('ui_doc.json')
|
176 |
+
ui_retrieved_doc_list=[]
|
177 |
if 'organize_clicked' not in st.session_state:
|
178 |
st.session_state.organize_clicked = False
|
179 |
st.session_state.retrieve_clicked = True
|