awacke1 commited on
Commit
eeba58d
·
1 Parent(s): 6eae6cf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -6
app.py CHANGED
@@ -517,7 +517,7 @@ def main():
517
  else:
518
  if st.button(f"Chat about Section {i+1}"):
519
  st.write('Reasoning with your inputs...')
520
- response = chat_with_model(user_prompt, section, model_choice) # *************************************
521
  st.write('Response:')
522
  st.write(response)
523
  document_responses[i] = response
@@ -535,14 +535,9 @@ def main():
535
  # Process each section with the model
536
  response = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)
537
  full_response += response + '\n' # Combine the responses
538
-
539
- #st.write('Response:')
540
- #st.write(full_response)
541
-
542
  response = full_response
543
  st.write('Response:')
544
  st.write(response)
545
-
546
  filename = generate_filename(user_prompt, choice)
547
  create_file(filename, user_prompt, response, should_save)
548
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
 
517
  else:
518
  if st.button(f"Chat about Section {i+1}"):
519
  st.write('Reasoning with your inputs...')
520
+ response = chat_with_model(user_prompt, section, model_choice)
521
  st.write('Response:')
522
  st.write(response)
523
  document_responses[i] = response
 
535
  # Process each section with the model
536
  response = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)
537
  full_response += response + '\n' # Combine the responses
 
 
 
 
538
  response = full_response
539
  st.write('Response:')
540
  st.write(response)
 
541
  filename = generate_filename(user_prompt, choice)
542
  create_file(filename, user_prompt, response, should_save)
543
  st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)