Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -389,6 +389,9 @@ def chatbot(user_input, science_objectives="", context="", subdomain="", use_enc
|
|
| 389 |
presence_penalty=presence_penalty
|
| 390 |
)
|
| 391 |
|
|
|
|
|
|
|
|
|
|
| 392 |
# Export the response to a Word document
|
| 393 |
word_doc_path = export_to_word(response, subdomain, user_input)
|
| 394 |
|
|
|
|
| 389 |
presence_penalty=presence_penalty
|
| 390 |
)
|
| 391 |
|
| 392 |
+
if science_objectives.strip():
|
| 393 |
+
response = f"### Science Objectives (User-Defined):\n{science_objectives}\n\n" + response
|
| 394 |
+
|
| 395 |
# Export the response to a Word document
|
| 396 |
word_doc_path = export_to_word(response, subdomain, user_input)
|
| 397 |
|