shlokamhaisekar commited on
Commit
eab4440
·
verified ·
1 Parent(s): 8d96506

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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. 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)
 
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. Don't output recipes that are not found in the text file provided."}]
113
 
114
  if history:
115
  messages.extend(history)