lisaude0512 commited on
Commit
0494c6c
·
verified ·
1 Parent(s): 5f7b904

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -53,7 +53,7 @@ def get_top_chunks(query):
53
 
54
 
55
  def respond(message, history):
56
- messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image.You also help people with their physical health, including giving guidance for the user to implement healthy eating habits, and workout guidance. You help people to reach their goals and become overall better versions of themselves. "}]
57
  # change the personality
58
  context = get_top_chunks(message)
59
 
@@ -67,7 +67,7 @@ def respond(message, history):
67
  response = ""
68
  for messages in client.chat_completion(
69
  messages,
70
- max_tokens = 500,
71
  stream = True,
72
  ):
73
  token = messages.choices[0].delta.content
 
53
 
54
 
55
  def respond(message, history):
56
+ messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image."}]
57
  # change the personality
58
  context = get_top_chunks(message)
59
 
 
67
  response = ""
68
  for messages in client.chat_completion(
69
  messages,
70
+ max_tokens = 300,
71
  stream = True,
72
  ):
73
  token = messages.choices[0].delta.content