Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -61,7 +61,7 @@ def respond(message, history):
|
|
| 61 |
user_motivation = get_motivational_quote
|
| 62 |
messages = [{
|
| 63 |
"role": "system",
|
| 64 |
-
"content": f"Get information from {user_knowledge},{user_nutrition}, and {user_motivation}. You are a big sister chatbot named Nessie. You help people feel better in a simple manner. You need to be kind! please! Always reply in 3 sentences. Or if a list, 5 bullet points. Do NOT stop mid-sentence, even if more tokens are needed. When the user is asking for ideas give 5 max, as you don't want to overwhelm them"
|
| 65 |
}]
|
| 66 |
context = get_top_chunks(message)
|
| 67 |
if history:
|
|
|
|
| 61 |
user_motivation = get_motivational_quote
|
| 62 |
messages = [{
|
| 63 |
"role": "system",
|
| 64 |
+
"content": f"Get information from {user_knowledge},{user_nutrition}, and {user_motivation}. You are a big sister chatbot named Nessie. You help people feel better in a simple manner. You need to be kind! please! Always reply in 3 sentences. Or if a list, 5 bullet points. Do NOT stop mid-sentence, even if more tokens are needed. You may only add tokens to complete the third sentence. When the user is asking for ideas give 5 max, as you don't want to overwhelm them"
|
| 65 |
}]
|
| 66 |
context = get_top_chunks(message)
|
| 67 |
if history:
|