SoDa12321 commited on
Commit
5673d30
·
verified ·
1 Parent(s): b1ed9f8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -93,17 +93,18 @@ def collect_basic_info():
93
  if section_to_generate == "All Sections":
94
  if st.button('Generate All Sections'):
95
  # Generate all sections content at once
96
- all_sections_content = generate_all_sections(data)
 
97
 
98
  # Create a new document for all sections combined
99
  combined_doc = create_document()
100
 
101
- for section_name, section_content in all_sections_content.items():
102
- st.subheader(section_name)
103
- st.write(section_content) # Display the generated content
104
 
105
  # Add each section's content to the combined document
106
- combined_doc = add_section_to_doc(combined_doc, section_name, section_content)
107
 
108
  # Get bytes for the combined document and create a download button
109
  combined_doc_bytes = get_docx_bytes(combined_doc)
 
93
  if section_to_generate == "All Sections":
94
  if st.button('Generate All Sections'):
95
  # Generate all sections content at once
96
+ #all_sections_content =
97
+ generate_all_sections(data)
98
 
99
  # Create a new document for all sections combined
100
  combined_doc = create_document()
101
 
102
+ #for section_name, section_content in all_sections_content.items():
103
+ # st.subheader(section_name)
104
+ # st.write(section_content) # Display the generated content
105
 
106
  # Add each section's content to the combined document
107
+ # combined_doc = add_section_to_doc(combined_doc, section_name, section_content)
108
 
109
  # Get bytes for the combined document and create a download button
110
  combined_doc_bytes = get_docx_bytes(combined_doc)