Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def respond(message, history):
|
|
| 109 |
|
| 110 |
str_recipes_chunk = "\n".join([str(chunk) for chunk in best_recipes_chunk])
|
| 111 |
|
| 112 |
-
messages = [{"role":"system","content": "You are a chatbot that is a nutrition expert and helps people with their nutritional goals.
|
| 113 |
|
| 114 |
if history:
|
| 115 |
messages.extend(history)
|
|
|
|
| 109 |
|
| 110 |
str_recipes_chunk = "\n".join([str(chunk) for chunk in best_recipes_chunk])
|
| 111 |
|
| 112 |
+
messages = [{"role":"system","content": "You are a chatbot that is a nutrition expert and helps people with their nutritional goals. DON'T MAKE UP RECIPES. You can only output recipes from" + str_recipes_chunk + ". You CANNOT use the internet or make up recipes at any cost. ONLY use the text file provided. YOU HAVE to follow these rules."}]
|
| 113 |
|
| 114 |
if history:
|
| 115 |
messages.extend(history)
|