awacke1 commited on
Commit
be0540c
·
1 Parent(s): dd8d35d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -123,10 +123,6 @@ def main():
123
  document_sections.extend(divide_document(file_content, max_length))
124
 
125
  if len(document_sections) > 0:
126
- st.markdown("**Sections of the uploaded file:**")
127
- for i, section in enumerate(list(document_sections)):
128
- st.markdown(f"**Section {i+1}**\n{section}")
129
-
130
  st.markdown("**Chat with the model:**")
131
  for i, section in enumerate(list(document_sections)):
132
  if i in document_responses:
@@ -141,7 +137,10 @@ def main():
141
  filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
142
  create_file(filename, user_prompt, response)
143
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
144
-
 
 
 
145
 
146
  if st.button('💬 Chat'):
147
  st.write('Thinking and Reasoning with your inputs...')
 
123
  document_sections.extend(divide_document(file_content, max_length))
124
 
125
  if len(document_sections) > 0:
 
 
 
 
126
  st.markdown("**Chat with the model:**")
127
  for i, section in enumerate(list(document_sections)):
128
  if i in document_responses:
 
137
  filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
138
  create_file(filename, user_prompt, response)
139
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
140
+
141
+ st.markdown("**Sections of the uploaded file:**")
142
+ for i, section in enumerate(list(document_sections)):
143
+ st.markdown(f"**Section {i+1}**\n{section}")
144
 
145
  if st.button('💬 Chat'):
146
  st.write('Thinking and Reasoning with your inputs...')