Spaces:
Runtime error
Runtime error
Update app.py
Browse files574 unmodified lines57557657757857958058158210 unmodified lines593594595596597598599600574 unmodified linesif st.button(f"Chat about Section {i+1}"):st.write('Reasoning with your inputs...')response = chat_with_model(user_prompt, section, model_choice)st.write('Response:')st.write(response)document_responses[i] = responsefilename = generate_filename(f"{user_prompt}_section_{i+1}", choice)create_file(filename, user_prompt, response, should_save)10 unmodified linesresponse = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)full_response += response + '\n' # Combine the responsesresponse = full_responsest.write('Response:')st.write(response)filename = generate_filename(user_prompt, choice)create_file(filename, user_prompt, response, should_save)st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)574 unmodified lines57557657757857958010 unmodified lines591592593594595596574 unmodified linesif st.button(f"Chat about Section {i+1}"):st.write('Reasoning with your inputs...')response = chat_with_model(user_prompt, section, model_choice)document_responses[i] = responsefilename = generate_filename(f"{user_prompt}_section_{i+1}", choice)create_file(filename, user_prompt, response, should_save)10 unmodified linesresponse = chat_with_model(prompt_section, ''.join(list(document_sections)), model_choice)full_response += response + '\n' # Combine the responsesresponse = full_responsefilename = generate_filename(user_prompt, choice)create_file(filename, user_prompt, response, should_save)st.sidebar.markdown(get_table_download_link(filename), unsafe_allow_html=True)
app.py-4