Spaces:
Running
Running
Update app.py
Browse files
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 |
|