Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -575,8 +575,6 @@ def main():
|
|
575 |
if st.button(f"Chat about Section {i+1}"):
|
576 |
st.write('Reasoning with your inputs...')
|
577 |
response = chat_with_model(user_prompt, section, model_choice)
|
578 |
-
st.write('Response:')
|
579 |
-
st.write(response)
|
580 |
document_responses[i] = response
|
581 |
filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
|
582 |
create_file(filename, user_prompt, response, should_save)
|
@@ -593,8 +591,6 @@ def main():
|
|
593 |
response = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)
|
594 |
full_response += response + '\n' # Combine the responses
|
595 |
response = full_response
|
596 |
-
st.write('Response:')
|
597 |
-
st.write(response)
|
598 |
filename = generate_filename(user_prompt, choice)
|
599 |
create_file(filename, user_prompt, response, should_save)
|
600 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|
|
|
575 |
if st.button(f"Chat about Section {i+1}"):
|
576 |
st.write('Reasoning with your inputs...')
|
577 |
response = chat_with_model(user_prompt, section, model_choice)
|
|
|
|
|
578 |
document_responses[i] = response
|
579 |
filename = generate_filename(f"{user_prompt}_section_{i+1}", choice)
|
580 |
create_file(filename, user_prompt, response, should_save)
|
|
|
591 |
response = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)
|
592 |
full_response += response + '\n' # Combine the responses
|
593 |
response = full_response
|
|
|
|
|
594 |
filename = generate_filename(user_prompt, choice)
|
595 |
create_file(filename, user_prompt, response, should_save)
|
596 |
st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
|