awacke1 commited on
Commit
6fc0717
·
1 Parent(s): d1d1dda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -138,6 +138,10 @@ def main():
138
  st.write('Response:')
139
  st.write(response)
140
  document_responses[i] = response
 
 
 
 
141
 
142
  if st.button('💬 Chat'):
143
  st.write('Thinking and Reasoning with your inputs...')
 
138
  st.write('Response:')
139
  st.write(response)
140
  document_responses[i] = response
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...')