Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,11 +52,11 @@ def get_top_chunks(query):
|
|
| 52 |
|
| 53 |
|
| 54 |
def respond(message, history):
|
| 55 |
-
messages = [{"role": "system", "content": "You are a big sister chatbot named, Nessie. You help people feel better about their bodies and self-image."}]
|
| 56 |
# change the personality
|
| 57 |
context = get_top_chunks(message)
|
| 58 |
|
| 59 |
-
|
| 60 |
messages.extend(history)
|
| 61 |
messages.append({"role": "user", "content": message})
|
| 62 |
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
def respond(message, history):
|
| 55 |
+
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. "}]
|
| 56 |
# change the personality
|
| 57 |
context = get_top_chunks(message)
|
| 58 |
|
| 59 |
+
if history:
|
| 60 |
messages.extend(history)
|
| 61 |
messages.append({"role": "user", "content": message})
|
| 62 |
|