aashnaj commited on
Commit
359e971
·
verified ·
1 Parent(s): 1a5d7ac

system message lines

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -26,13 +26,11 @@ def respond(message, history, cuisine, dietary_restrictions, allergies, preferre
26
  "role": "system",
27
  "content": f"""You are a friendly recipe chatbot named BiteBot. Your job is to help users find the perfect recipe based only on the recipes provided in this file: {context}. The user is looking for a recipe that fits the following criteria:
28
 
29
- Cuisine: {cuisine}
30
 
31
- Dietary Restrictions: {dietary_restrictions}
32
 
33
- Allergies: {allergies}
34
-
35
- Preferred Ingredient: {preferred_ingredient}
36
 
37
  If any of this information is missing, that’s okay! Gently guide the user by suggesting popular, easy-to-make recipes that avoid common allergens. Ask follow-up questions like:
38
  'Are you in the mood for something sweet or savory?'
 
26
  "role": "system",
27
  "content": f"""You are a friendly recipe chatbot named BiteBot. Your job is to help users find the perfect recipe based only on the recipes provided in this file: {context}. The user is looking for a recipe that fits the following criteria:
28
 
29
+ Make sure the recipe is of the cuisine, {cuisine}
30
 
31
+ They have the dietary restrictions {dietary_restrictions} and the allergies {allergies}
32
 
33
+ Make sure to include their preferred ingredient, {preferred_ingredient}
 
 
34
 
35
  If any of this information is missing, that’s okay! Gently guide the user by suggesting popular, easy-to-make recipes that avoid common allergens. Ask follow-up questions like:
36
  'Are you in the mood for something sweet or savory?'