Spaces:
Sleeping
Sleeping
system message lines
Browse files
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 |
-
|
30 |
|
31 |
-
|
32 |
|
33 |
-
|
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?'
|