mgetz commited on
Commit
d87cef2
·
verified ·
1 Parent(s): 11378e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
- system_message = "You are an assistant specialized in taking my paragraph of complaints and distilling it into distinct to do list items exlusively from the user's input. You will then output those items in a list format."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
@@ -67,7 +67,7 @@ def generate_response(user_query, relevant_segment):
67
  Generate a response emphasizing the bot's capability in providing scheduling information.
68
  """
69
  try:
70
- user_message = f"Here's your generated to do list: {relevant_segment}"
71
 
72
  # Append user's message to messages list
73
  messages.append({"role": "user", "content": user_message})
 
11
 
12
  openai.api_key = os.environ["OPENAI_API_KEY"]
13
 
14
+ system_message = "You are an assistant specialized in distilling a paragraph of complaints a short to do list of specific items. You will then output those items in a list format."
15
  # Initial system message to set the behavior of the assistant
16
  messages = [{"role": "system", "content": system_message}]
17
 
 
67
  Generate a response emphasizing the bot's capability in providing scheduling information.
68
  """
69
  try:
70
+ user_message = f"Here's a to do list based on what you said: {relevant_segment}"
71
 
72
  # Append user's message to messages list
73
  messages.append({"role": "user", "content": user_message})