SoDa12321 commited on
Commit
913f56c
·
verified ·
1 Parent(s): d237b59

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -86,7 +86,7 @@ def collect_basic_info():
86
 
87
  # Create data dictionary by dynamically generating input fields
88
  data = {field_key: st.text_area(field_label) for field_key, field_label in report_fields}
89
-
90
  # Add an option to generate all sections
91
  section_to_generate = st.selectbox("Choose section to generate", [section[0] for section in report_sections])
92
 
@@ -100,7 +100,7 @@ def collect_basic_info():
100
 
101
  for section_name, section_content in all_sections_content.items():
102
  st.subheader(section_name)
103
- st.write(section_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)
@@ -120,7 +120,7 @@ def collect_basic_info():
120
  # Generate content and display it
121
  section_content = call_dynamic_function(section_function_name, data)
122
  st.subheader(section_to_generate)
123
- st.write(section_content)
124
 
125
  # Create and download the document for this specific section only
126
  doc = create_document()
 
86
 
87
  # Create data dictionary by dynamically generating input fields
88
  data = {field_key: st.text_area(field_label) for field_key, field_label in report_fields}
89
+
90
  # Add an option to generate all sections
91
  section_to_generate = st.selectbox("Choose section to generate", [section[0] for section in report_sections])
92
 
 
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)
 
120
  # Generate content and display it
121
  section_content = call_dynamic_function(section_function_name, data)
122
  st.subheader(section_to_generate)
123
+ st.write(section_content) # Display the generated content
124
 
125
  # Create and download the document for this specific section only
126
  doc = create_document()