Update aAzel.py
Browse files101 unmodified lines102103104105106107108109110111112113114101 unmodified linesst.subheader("Table of Contents:")display_text_with_wrapping(st.session_state.toc)chapters = [c.strip()for c in st.session_state.toc.split("\n")if c.strip()]if st.session_state.current_chapter_index < len(chapters):chapter_input = st.text_input(f"Enter the name of Chapter {st.session_state.current_chapter_index + 1} (as it appears in the TOC):")if st.button("Generate Chapter"):101 unmodified lines102103104105106107108109110111112113114115101 unmodified linesst.subheader("Table of Contents:")display_text_with_wrapping(st.session_state.toc)chapters = [c.strip()for c in st.session_state.toc.split("\n")if c.strip()]if st.session_state.current_chapter_index < len(chapters):chapter_input = st.text_input(f"Enter the name of Chapter {st.session_state.current_chapter_index + 1} (as it appears in the TOC):",value=chapters[st.session_state.current_chapter_index] if st.session_state.current_chapter_index < len(chapters) else "")if st.button("Generate Chapter"):
aAzel.py+5-4