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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
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