aquibmoin commited on
Commit
c1b8d59
·
verified ·
1 Parent(s): b64c6e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -268,6 +268,11 @@ def export_to_word(response_content, subdomain_definition, science_goal):
268
  doc.add_heading('Science Goal:', level=1)
269
  doc.add_paragraph(science_goal)
270
 
 
 
 
 
 
271
  # Split the response into sections based on ### headings
272
  sections = response_content.split('### ')
273
 
 
268
  doc.add_heading('Science Goal:', level=1)
269
  doc.add_paragraph(science_goal)
270
 
271
+ # Insert Science Objectives if provided
272
+ if science_objectives.strip():
273
+ doc.add_heading('Science Objectives (User-Defined):', level=1)
274
+ doc.add_paragraph(science_objectives)
275
+
276
  # Split the response into sections based on ### headings
277
  sections = response_content.split('### ')
278